19.06.2013, 14:27
i want to make a timer. when gamemode starts after 10 secs the player would not be able to spawn and automatically spectates other user. i have tried that. but it is not working. please tell me where problem is occured. because compiler is showing no error.
Thank You.
pawn Код:
public OnGameModeInit()
{
SetTimerEx("Connect", 10000, false, "i");
return 1;
}
forward Connect(playerid);
public Connect(playerid)
{
TogglePlayerSpectating(playerid, 1);
return 1;
}