27.09.2011, 22:09
I am looking for something that will freeze somebody and unfreeze them in 10 seconds so the maps have time to load otherwise i the objects just wont load, so can anybody make a script to do that for me?
TogglePlayerControllable(playerid,0); SetPlayerPos(playerid,X,Y,Z); SetTimerEx("unfreeze", 10000, false, "i", playerid); forward unfreeze(playerid); public unfreeze(playerid) { TogglePlayerControllable(playerid,1); }
Hi Hunted,
You could try the following: Код:
TogglePlayerControllable(playerid,0); SetPlayerPos(playerid,X,Y,Z); SetTimerEx("unfreeze", 10000, false, "i", playerid); forward unfreeze(playerid); public unfreeze(playerid) { TogglePlayerControllable(playerid,1); } Cheers, TJ |
Where ever you have the command to change the gamemodes put this in there
TogglePlayerControllable(playerid,0); SetPlayerPos(playerid,X,Y,Z); SetTimerEx("unfreeze", 10000, false, "i", playerid); And this any where else outside any other command make it .. it's own line forward unfreeze(playerid); public unfreeze(playerid) { TogglePlayerControllable(playerid,1); } |