Szerző Téma: Fizetés  (Megtekintve 667 alkalommal)

Fizetés
« Dátum: 2011. Április 04. - 07:30:44 »
0 Show voters
Sziasztok!
Tudtommal igy kell megcsinálni hogy az illetõ kapjon fizetést de nekem mégse jó!
 

public PayDay()
{
GivePlayerMoney(playerID,100);
return 1;
}

Fizetés
« Válasz #1 Dátum: 2011. Április 04. - 07:36:09 »
0 Show voters
ahol az idõzítõje van, ott
 
SetTimer(\"PayDay\", xxx, 1);

 
Helyett
 
SettimerEx(\"PayDay\", xxx, 1, \"d\", playerid);

 
és
 
public PayDay(playerid)
{
   GivePlayerMoney(playerid,100);
   return 1;
}

 


Ha ez nem jó, akkor
Marad az eredeti timer
És
 
public PayDay()
{
    for(new i = 0; i < MAX_PLAYERS; i++) {
        if(IsPlayerConnected(i)) {
            GivePlayerMoney(i,100);
        }
    }
    return 1;
}

Nem elérhető lusta19

  • 9084
  • £u$taÐi$znó
    • Profil megtekintése
Fizetés
« Válasz #2 Dátum: 2011. Április 04. - 12:32:38 »
0 Show voters
Vagy:
 
public PayDay()
{
for(new i = 0; i <= MAX_PLAYERS; i++)
{
GivePlayerMoney(i,3000);
}
SendClientMessageToAll(COLOR_BLUELIGHT,\"Megkaptad a Fizetést!!  \");
return 1;
}

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal