Szerző Téma: Score pénz  (Megtekintve 376 alkalommal)

Score pénz
« Dátum: 2012. Május 31. - 15:07:05 »
0 Show voters
Olyat szeretnék hogy amennyi pénze van 1 embernek annyi score ja van lehet?

Nem elérhető Nátha

  • 1036
    • Profil megtekintése
Score pénz
« Válasz #1 Dátum: 2012. Május 31. - 15:10:39 »
0 Show voters
Asszem ez jó... egy alap angol modból szedtem ki:
 
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);
   }
}
}
}

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal