Freeze and Unfreeze
#1

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?
Reply
#2

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); }
Hope this helped,

Cheers,

TJ
Reply
#3

symbol already defined: "TogglePlayerControllable" Btw that was quick
Reply
#4

So where do i put that? Thanks!
Reply
#5

Quote:
Originally Posted by TTJJ
Посмотреть сообщение
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); }
Hope this helped,

Cheers,

TJ
Where do i put it
Reply
#6

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); }
Reply
#7

Quote:
Originally Posted by Buzzbomb
Посмотреть сообщение
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); }
undefined symbol "X"
Reply
#8

Quote:
Originally Posted by Hunted...Killed
Посмотреть сообщение
undefined symbol "X"
Set the coordinates.
Reply
#9

Quote:
Originally Posted by Kush
Посмотреть сообщение
Set the coordinates.
The maps still wont load, only the cars, Im using Incognitos object streamer, Do you have TeamViewer or do you have any idea why it isnt loading?
Reply
#10

Many threads JUST LIKE THIS ONE, search next time, then if you cant find help, but I found this just by searching Freeze Player

http://forum.sa-mp.com/showthread.ph...=Freeze+Player
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)