Freeze - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Freeze (
/showthread.php?tid=84230)
Freeze -
imran2009 - 29.06.2009
Hi,
If someone will teleport to some place then i want, it will freeze in air for 3 sec, How ?
Re: Freeze -
Stah - 29.06.2009
If your using a command to teleport, Then heres how to do it:
This goes right on top of the script with your other "new" and "forward"
pawn Код:
forward DropDelay(playerid);
Put this in your teleport command.
pawn Код:
SetTimerEx("DropDelay",3000,0,"i",playerid);
SetPlayerPos(playerid, X, Y+3, Z);
TogglePlayerControllable(playerid, false);
Place this anywhere in the script.
pawn Код:
public DropDelay(playerid)
{
TogglePlayerControllable(playerid, true);
}
Re: Freeze -
imran2009 - 29.06.2009
Thanks
Re: Freeze -
imran2009 - 29.06.2009
i got an Error
Код:
pwn(630) : error 017: undefined symbol "X"
Re: Freeze -
James_Alex - 29.06.2009
change the X by the teleport position
Re: Freeze -
imran2009 - 29.06.2009
Quote:
Originally Posted by James_Alex
change the X by the teleport position 
|
lol, Can u tell me whts that mean
Re: Freeze -
dice7 - 29.06.2009
pawn Код:
SetPlayerPos(playerid, X, Y+3, Z);
Change the X, Y and Z to the coordinates you want the player to be teleported
Re: Freeze -
imran2009 - 29.06.2009
Quote:
Originally Posted by dice7
pawn Код:
SetPlayerPos(playerid, X, Y+3, Z);
Change the X, Y and Z to the coordinates you want the player to be teleported
|
oooh Thz