Posts: 169
Threads: 23
Joined: May 2012
Reputation:
0
Hi,
I was looking for a way to set the player gravity, but the only thing I found was the YSF from ******, but it doesn't have support to 0.3e...
Does anyone have a simple solution for this?
Posts: 5,314
Threads: 12
Joined: Aug 2010
Reputation:
0
Remembering, the default value is 0.008
Posts: 36
Threads: 8
Joined: Apr 2012
Reputation:
0
I dont Know how to chane the player gravity but i know how to change the default gravity what u have to do is add This FS (fsdebug) and type /g or /gravity and change to as u wish NOTE dont change to 10 or 5 it will kill u better 0.0008 for cool high jumping
Posts: 169
Threads: 23
Joined: May 2012
Reputation:
0
Than you all for the suggestions, but I know the values I have to set, it will be 0.008 or 0.020, but I need to set it in different way for each player, no solution for this?
Posts: 169
Threads: 23
Joined: May 2012
Reputation:
0
Maybe one day ****** will update it, or maybe SAMP will include it in a future version, because it's really useful, that's a shame that we have no way to do that now :/
Posts: 341
Threads: 59
Joined: Jul 2010
Reputation:
0
This works:
if(strcmp(cmdtext, "/setgravity", true, 11)==0)
{
if(!cmdtext[11]) return SendClientMessage(playerid, 0xFF0000FF, "Usage: /setgravity [gravity]");
SetGravity(cmdtext[12]);
return 1;
}
although you should use a different command processor since strcmp is pretty slow
Posts: 318
Threads: 2
Joined: Jun 2009
Reputation:
0
You can't set different gravity for different players. You can however create a very laggy fake gravity using SetPlayerPos and timers.