26.09.2011, 12:58
Title says it all.
public OnPlayerInteriorChange(playerid,newinteriorid,oldinteriorid)
{
if(newinteriorid == 0)
{
TogglePlayerControllable(playerid, false);
SetTimerEx("Unfreeze", 5000, false, "i", playerid);
}
}
forward Unfreeze(playerid);
public Unfreeze(playerid)
{
TogglePlayerControllable(playerid, true);
return 1;
}
public OnPlayerInteriorChange(playerid,newinteriorid,oldinteriorid)
{
if(newinteriorid == 0)
TogglePlayerControllable(playerid,0);
return 1;
}