22.03.2012, 23:52
pawn Код:
NO COMEЗO DO GM/FS:
forward AtualizarGrana();
new Grana[MAX_PLAYERS];
public OnFilterScriptInit()
{
SetTimer("AtualizarGrana", 1000, 1);
return 1;
}
public AtualizarGrana()
{
for(new i; i<500; i++)
{
ResetPlayerMoney( i); //nгo troque essa funзгo pra ResetPlayerMoneyEx! nгo troque!
GivePlayerMoney(i, Grana[i]); //nгo troque essa funзгo para GivePlayerMoneyEx!
}
}
NO FINAL DO GM/FS:
stock GivePlayerGrana(playerid, ammount)return Grana[playerid] += ammount;
stock GetPlayerGrana(playerid)return Grana[playerid];
stock ResetPlayerGrana(playerid)return Grana[playerid] = 0;