Help with freezin
#4

PHP код:
new SpawnTimer[MAX_PLAYERS]; //At top of script
public OnPlayerSpawn(playerid)
{
     new 
Float:XFloat:YFloat:Z;
     
GetPlayerPos(playerid,,Z):
     
SetPlayerPos(playeridXY2);
     
TogglePlayerControllable(playerid,0);
     
SpawnTimer[playerid] = SetTimerEx("unfreezetimer"20000"i"playerid);//Timer to unfreeze player
}
forward unfreezetimer(playerid);
public 
unfreezetimer(playerid)
{
       
TogglePlayerControllable(playerid,1);
}
public 
OnPlayerDisconnect(playeridreason)
{
       
KillTimer(SpawnTimer[playerid]);
        return 
1;

Copied IceBillizard code and modified.
Reply


Messages In This Thread
Help with freezin - by CraTzy - 04.11.2015, 15:14
Re: Help with freezin - by IceBilizard - 04.11.2015, 15:27
Re: Help with freezin - by CraTzy - 05.11.2015, 10:43
Re: Help with freezin - by Karan007 - 05.11.2015, 11:02
Re: Help with freezin - by IceBilizard - 05.11.2015, 16:09
Re: Help with freezin - by CraTzy - 05.11.2015, 16:52
Re: Help with freezin - by Ritzy2K - 05.11.2015, 16:59
Re: Help with freezin - by CraTzy - 05.11.2015, 20:11

Forum Jump:


Users browsing this thread: 1 Guest(s)