18.06.2011, 23:47
pawn Код:
public OnGameModeInit()
{
SetTimer("Time",1000,true);
return true;
}
pawn Код:
new PlayerTime[MAX_PLAYERS];
forward Time();
public Time()
{
for(new x = 0; x != MAX_PLAYERS; x ++)
{
if(IsPlayerConnected(x))
PlayerTime[x]++;
if(PlayerTime[x] == 36000)
PlayerTime[x] = 0, PlayerInfo[x][pVip] = 1;
}
return true;
}