fm_set_user_gravity Help!
Hey,
I been tryna make a plugin for admins to type /grav or /gravity and they will have gravity and type it again and it will be normal but everything i tried failed, im tryna learn to script, so would someone be able to show me the real thing and ill learn from it, thanx. |
Re: fm_set_user_gravity Help!
Try this.
Code:
|
Re: fm_set_user_gravity Help!
PHP Code:
|
Re: fm_set_user_gravity Help!
thx both work
Hlev ones i fly to roof though Where would i add messages in these? saying. You Have Enabled Gravity You Have Disabled Gravity Thanx EDIT: BTW, there are glitches, when you use parachute the gravity goes off, and when you press alt tab and go to windows and come bak the grav is also off |
Re: fm_set_user_gravity Help!
PHP Code:
|
Re: fm_set_user_gravity Help!
Thanx it works, the only thing is i just noticed, Non-admins can use this.
|
Re: fm_set_user_gravity Help!
I dont know if its the best way but you can add is_user_admin in the if function
|
Re: fm_set_user_gravity Help!
Quote:
PHP Code:
PHP Code:
|
Re: fm_set_user_gravity Help!
I'm not sur if the 2 should be a 1 :
if(cmd_access(id, level, cid, 2)) Anyway, edited. |
| All times are GMT -4. The time now is 13:52. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.