GTA Közösség - A magyar GTA fórum

San Andreas Multiplayer (SA-MP) => SA-MP: Szerverfejlesztés => Segítségkérés => A témát indította: Flash - 2011. április 10. - 15:38:59

Cím: pontok helyett pénzt mutasson...
Írta: Flash - 2011. április 10. - 15:38:59
Hy all!
Amikor lenyomjuk a tabot a játékban akor megjelenik egy ablak amiben az alábbiak vannak: PlayerID, Név, Pontok Ping.
Én azt szeretném megoldani , hogy a pontok helyett pénzt mutasson!
Ezt hogy lehet megoldani?
Üdv:Flash
Cím: pontok helyett pénzt mutasson...
Írta: double out - 2011. április 10. - 15:44:51
OnPlayerUpdateAlá
 
SetPlayerScore(playerid,GetPlayerMoney(playerid))
Cím: pontok helyett pénzt mutasson...
Írta: NagyZ - 2011. április 10. - 16:08:03
Ha jól tudom ez az alap lvdm módba is benne van
Azt hiszem ez az :D
 
forward MoneyGrubScoreUpdate();
public MoneyGrubScoreUpdate()
{
new CashScore;
new name[MAX_PLAYER_NAME];
//new string[256];
for(new i=0; i<MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
   GetPlayerName(i, name, sizeof(name));
            CashScore = GetPlayerMoney(i);
   SetPlayerScore(i, CashScore);
   if (CashScore > CashScoreOld)
   {
      CashScoreOld = CashScore;
      //format(string, sizeof(string), \"$$$ %s is now in the lead $$$\", name);
      //SendClientMessageToAll(COLOR_YELLOW, string);
   }
}
}
}
Cím: pontok helyett pénzt mutasson...
Írta: double out - 2011. április 10. - 16:11:23
Idézetet írta: NagyZ date=1302444483\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"7454\" data-ipsquote-contentclass=\"forums_Topic
Ha jól tudom ez az alap lvdm módba is benne van
Azt hiszem ez az :D
 
forward MoneyGrubScoreUpdate();
public MoneyGrubScoreUpdate()
{
new CashScore;
new name[MAX_PLAYER_NAME];
//new string[256];
for(new i=0; i<MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
   GetPlayerName(i, name, sizeof(name));
            CashScore = GetPlayerMoney(i);
   SetPlayerScore(i, CashScore);
   if (CashScore > CashScoreOld)
   {
      CashScoreOld = CashScore;
      //format(string, sizeof(string), \"$$$ %s is now in the lead $$$\", name);
      //SendClientMessageToAll(COLOR_YELLOW, string);
   }
}
}
}

 

Egy sorral meglehet oldani..
Cím: pontok helyett pénzt mutasson...
Írta: Flash - 2011. április 10. - 21:44:19
Tényleg 1 sorral meglehet oldani! Azt még meglehet csinálni, hogy score helyett Money-t írjon?
Cím: pontok helyett pénzt mutasson...
Írta: double out - 2011. április 10. - 23:43:20
Azt nem lehet átírni.
Cím: pontok helyett pénzt mutasson...
Írta: Flash - 2011. április 11. - 14:02:18
oks! köszi! mûködik!
Zárok.