Raised This Month: $ Target: $400
 0% 

Remove Gravity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PLAYER UNKNOWN
New Member
Join Date: Apr 2018
Old 04-02-2018 , 12:36   Remove Gravity
Reply With Quote #1

Hi, could anybody show me a way to remove the gravity from every alive player?

http://amxmodx.org/api/fun/set_user_gravity

Last edited by PLAYER UNKNOWN; 04-02-2018 at 12:54.
PLAYER UNKNOWN is offline
InteX01
Senior Member
Join Date: Jan 2017
Old 04-02-2018 , 13:01   Re: Remove Gravity
Reply With Quote #2

how do you mean remove ??? set default ?
InteX01 is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 04-02-2018 , 13:17   Re: Remove Gravity
Reply With Quote #3

Code:
new iPlayers[32], iPlayersNum; get_players(iPlayers, iPlayersNum, "ach"); for(new i = 0; i < iPlayersNum; i++){     new id = iPlayers[i];     set_user_gravity(id, 1.0); }
__________________
Relaxing is offline
PLAYER UNKNOWN
New Member
Join Date: Apr 2018
Old 04-02-2018 , 13:20   Re: Remove Gravity
Reply With Quote #4

So, in other words, the player will stuck on the floor if we remove the gravity. He will never be able to move.
__________________
Bunnyhop plugin is coming soon...
PLAYER UNKNOWN is offline
PLAYER UNKNOWN
New Member
Join Date: Apr 2018
Old 04-02-2018 , 13:23   Re: Remove Gravity
Reply With Quote #5

Quote:
Originally Posted by Relaxing View Post
Code:
new iPlayers[32], iPlayersNum; get_players(iPlayers, iPlayersNum, "ach"); for(new i = 0; i < iPlayersNum; i++){     new id = iPlayers[i];     set_user_gravity(id, 1.0); }
No, I didn't mean to set it to default, but remove it.
__________________
Bunnyhop plugin is coming soon...
PLAYER UNKNOWN is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-02-2018 , 13:57   Re: Remove Gravity
Reply With Quote #6

Quote:
Originally Posted by PLAYER UNKNOWN View Post
So, in other words, the player will stuck on the floor if we remove the gravity. He will never be able to move.
Last time I've checked people in space (where there is no gravity) could float, not be stuck to the floor. What you want is the total opposite - set a high amount of gravity, which I guess you know how to do.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
PLAYER UNKNOWN
New Member
Join Date: Apr 2018
Old 04-02-2018 , 14:01   Re: Remove Gravity
Reply With Quote #7

Aha! My bad. I'm so sorry. So will it be?

PHP Code:
set_user_gravity(id1000000000000); 
__________________
Bunnyhop plugin is coming soon...

Last edited by PLAYER UNKNOWN; 04-02-2018 at 14:01.
PLAYER UNKNOWN is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-02-2018 , 15:02   Re: Remove Gravity
Reply With Quote #8

Well you can try. I'd use a more normal number though.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode