20.09.2016, 16:32
This are the codes
the problem is that the timer don't start :/
i think every thing is fine, any help?
the problem is that the timer don't start :/
PHP код:
new ending;
PHP код:
public OnGameModeInit()
{
for (new id = 0; id < MAX_PLAYERS;id++)
{
if(IsPlayerConnected(id))
{
SetTimerEx("Unfreeze", 120000, false, "i", id);
}
}
}
PHP код:
forward Unfreeze(id);
public Unfreeze(id)
{
SendClientMessage(id, COLOR_PEACH, "Test message");
if(spawn[id] == 1)
{
TogglePlayerControllable(id, 1);
SendClientMessage(id, COLOR_PEACH, "The race has been started! Go!");
}
ending = SetTimer("Next", 180000, false);
return 1;
}
forward Next();
public Next()
{
SendRconCommand("changemode Proj");
return 1;
}