Change Gravity only for current player? - 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: Change Gravity only for current player? (
/showthread.php?tid=146640)
Change Gravity only for current player? -
xXDaniiXx - 08.05.2010
hello everyone
i want to make a command wich changes the gravity, but only for the player who has enterd the command..
how to i do that?
Thanks in advanced.
Re: Change Gravity only for current player? -
kacperoo - 08.05.2010
SetPlayerGravity(playerid, gravity); -
http://forum.sa-mp.com/index.php?topic=138599.0
Re: Change Gravity only for current player? -
xXDaniiXx - 08.05.2010
thank you...
but this doesent work on the 0.3 R7 windows server, witch is the one i have..
Re: Change Gravity only for current player? -
Jay. - 08.05.2010
Add this line under the Callback "OnPlayerCommandText"
Код:
SetGravity(playerid,0.004);
And the '0.004' You can change to the gravity you want the player to have.
This is just a idea.