/SKYDIVE command... But without being moved... - 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: /SKYDIVE command... But without being moved... (
/showthread.php?tid=455464)
/SKYDIVE command... But without being moved... -
cray1100 - 01.08.2013
I have tried many times, with FAILURE! I need someone to show me how to make a cmd to give play a parachute, then add 2000 to their height, i know i need GetPlayerPosition, and
Код:
GivePlayerWeapon(playerid,46,1);
for the parachute, but i dont know how to only add to the players position, without moving him/her!... Please help, will +rep!
Re: /SKYDIVE command... But without being moved... -
park4bmx - 01.08.2013
pawn Код:
new Float:pPos[3];
GetPlayerPos(playerid,pPos[0],pPos[1],pPos[2]);
SetPlayerPos(playerid,pPos[0],pPos[1],pPos[2]+2000);
Re: /SKYDIVE command... But without being moved... -
cray1100 - 01.08.2013
lol, it worked... +repped!
AW: /SKYDIVE command... But without being moved... -
BigETI - 01.08.2013
How do you generally process commands in your script?
Anyway...
pawn Код:
new Float:pPos[3];
GetPlayerPos(playerid, pPos[0], pPos[1], pPos[2]); // Gets the position
SetPlayerPos(playerid, pPos[0], pPos[1], pPos[2]+2000.0); // Sets the position and adds 2 kilometers altitude.
Re: /SKYDIVE command... But without being moved... -
Areax - 01.08.2013
To late!