Eu faria assim...
Código PHP:
new TIMERPAYDAY[MAX_PLAYERS]; // Topo do GM
TIMERPAYDAY[playerid] = SetTimerEx( "PayDay", 60000 , true, "d", playerid); // Em On Player Spawn
KillTimer(TIMERPAYDAY[playerid]); // OnPlayerDisconnect
forward PayDay(playerid);
public PayDay(playerid)
{
if(PlayerInfo[playerid][Vip] < 1 || PlayerInfo[playerid][Acionista] < 1)
{
SendClientMessage(playerid, -1, "============== PAYDAY ============== ");
SendClientMessage(playerid, -1, "Voce recebeu + 1 score e $6500");
SendClientMessage(playerid, -1, "============== PAYDAY ============== ");
new scoreantigo = GetPlayerScore(playerid);
SetPlayerScore(playerid, scoreantigo+1);
GivePlayerMoney(playerid, 6500);
}
else if(PlayerInfo[playerid][Vip] == 1)
{
SendClientMessage(playerid, -1, "============== PAYDAY ============== ");
SendClientMessage(playerid, -1, "Player vip: Ganhou +2 score e mais $4250");
SendClientMessage(playerid, -1, "============== PAYDAY ============== ");
new scoreantigo = GetPlayerScore(playerid);
SetPlayerScore(playerid, scoreantigo+2);
GivePlayerMoney(playerid, 4250);
}
else if(PlayerInfo[playerid][Acionista] == 1)
{
SendClientMessage(playerid, -1, "============== PAYDAY ============== ");
SendClientMessage(playerid, -1, "Player Acionista: Ganhou +2 score e mais $4250");
SendClientMessage(playerid, -1, "============== PAYDAY ============== ");
new scoreantigo = GetPlayerScore(playerid);
SetPlayerScore(playerid, scoreantigo+2);
GivePlayerMoney(playerid, 4250);
}
return 1;
}