SetPlayerPos ashore
#1

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

https://sampwiki.blast.hk/wiki/SetPlayerPosFindZ
Reply
#3

How to use this function ?
Reply
#4

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;
Reply
#5

doesn't work..
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)