SetPlayerPos ashore - 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)
+--- Thread: SetPlayerPos ashore (
/showthread.php?tid=381567)
SetPlayerPos ashore -
PryX0G3n - 29.09.2012
Hi all, how to teleport a player ashore when falling?
Es code :
Код:
// setplayerpos in air
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(playerid, x, y, z + 50.0);
Код:
// setplayerpos ashore
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(playerid, x + 0.0, y + 0.0, z + 0.0);
how to fix? thanks in advance!
Re: SetPlayerPos ashore -
Vince - 30.09.2012
https://sampwiki.blast.hk/wiki/SetPlayerPosFindZ
Re: SetPlayerPos ashore -
PryX0G3n - 30.09.2012
How to use this function ?
Re: SetPlayerPos ashore -
gnoomen2 - 30.09.2012
You can make this a command like /falling
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(playerid, x + 0.0, y + 5.0, z + 0.0);
return 1;
Re: SetPlayerPos ashore -
PryX0G3n - 30.09.2012
doesn't work..