30.07.2010, 00:57
All is in the title, thank you.
public OnPlayerSpawn(playerid)
{
TogglePlayerControllable(playerid, 1);
return 1;
}
forward UnfreezePlayer(playerid); // top of script
public UnfreezePlayer(playerid) // Anywhere in the script as long it isn't in a callback.
{
if(IsPlayerConnected(playerid))
{
TogglePlayerControllable(playerid,1);
}
return 1;
}
public OnPlayerSpawn(playerid) // Your OnPlayerSpawn Code
{
TogglePlayerControllable(playerid, 0);
SetTimerEx("UnfreezePlayer", 3000, false, "d", playerid);
return 1;
}