25.02.2010, 17:03
pawn Код:
public OnGameModeInit()
{
SetTimer("MoneyCheck", 1000, 1);
return 0;
}
forward MoneyCheck();
public MoneyCheck()
{
new
id = 0,
max = GetMaxPlayers();
for(; id < max; id++)
{
if(GetPlayerMoney(id) <= -10000)
{
//jail player
}
}
}