20.01.2015, 20:00
Have you started the timer?
I have this code to start it for all players:
I have this code to start it for all players:
pawn Код:
// Top of script
new GTimer1000;
// OnGameModeInit
GTimer1000 = SetTimer("GlobalTimer1000", 1000, true);
// OnGameModeExit
KillTimer(GTimer1000);
// Somewhere in the script
forward GlobalTimer1000();
public GlobalTimer1000()
{
// Loop through all players and only run the timer for each player who's logged in
for (new playerid; playerid < MAX_PLAYERS; playerid++)
if (APlayerData[playerid][LoggedIn] == true)
PlayerTimer1000(playerid);
}