17.07.2016, 13:32
PHP код:
public OnGameModeInit()
{
SetTimer("AtualizarGrana", 5000, true);
}
forward AtualizarGrana();
public AtualizarGrana()
{
for(new i = 0; i < MAX_PLAYERS; ++i)
{
if(GetPlayerMoney(i) > 1000000)
{
ResetPlayerMoney(i);
GivePlayerMoney(i, 1000000);
return 1;
}
}
}