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: DareDevil - 2011. április 04. - 07:30:44

Cím: Fizetés
Írta: DareDevil - 2011. április 04. - 07:30:44
Sziasztok!
Tudtommal igy kell megcsinálni hogy az illetõ kapjon fizetést de nekem mégse jó!
 

public PayDay()
{
GivePlayerMoney(playerID,100);
return 1;
}
Cím: Fizetés
Írta: TengeriMalac - 2011. április 04. - 07:36:09
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;
}
Cím: Fizetés
Írta: lusta19 - 2011. április 04. - 12:32:38
Vagy:
 
public PayDay()
{
for(new i = 0; i <= MAX_PLAYERS; i++)
{
GivePlayerMoney(i,3000);
}
SendClientMessageToAll(COLOR_BLUELIGHT,\"Megkaptad a Fizetést!!  \");
return 1;
}