Putting together a plugin? (VIPMenu)
Hello!,
So, i have searching for a VIP menu plugin. I found one, but its not exactly the one i want. The code: PHP Code:
PHP Code:
3)All grenades SB, 2x FB, HE 4)Speed for 5 seconds (increases about 70 or 90) And you could use the menu once every 100 sec or 120 sec. PS. I haven't tried this plugin even once, so i dont know does it work. (Going to try it if i get to other computer) PS2.How can i modify the falling damage? I'd like to decrease it by 35% for VIPs. Feel free to critisize... 'cause its my first time touching a script. If there is something wrong PLEASE tell me =) If you changed something then tell me what, 'cause if you do all for me i wouldn't learn anything! Thanks, Syrup =333333 |
Re: Putting together a plugin? (VIPMenu)
You have to put the if statement inside of the VIP menu fuction and then return PLUGIN_HANDLED. Oh in the createmenu it says vipmeniu:?? Also for the third case make a menu item for it the same way to make it for the deagle and stuff.
|
Re: Putting together a plugin? (VIPMenu)
Quote:
PHP Code:
Quote:
|
Re: Putting together a plugin? (VIPMenu)
Oh make a new menu item for the grenades. The if plugin has to be like this:
Code:
public VIPMenu(id) |
Re: Putting together a plugin? (VIPMenu)
PHP Code:
|
Re: Putting together a plugin? (VIPMenu)
Yea should be. Did u add the if statement?
|
Re: Putting together a plugin? (VIPMenu)
Yea should be. Did u add the if statement?
|
Re: Putting together a plugin? (VIPMenu)
The admin flag B thingy?
|
Re: Putting together a plugin? (VIPMenu)
If So, then i will show you the full plugin atm... all i need is speed command and the interval between using the vipmenu (120sec thingy i talked about)...
Oh and the falldamage thingy too. PHP Code:
|
Re: Putting together a plugin? (VIPMenu)
I'm not sure if there's a set_user_falldamage, but you could use set usergravity to decrease falldamage. Make another menu option for it and then case 4 would be set_user_gravity(id, "600") or whatever number. But first take out case 4 and compile this plugin to see if it will work. Also to do the speed. New menu item again new case. New float:speed=get_user_maxspeed(id). Then set_user_maxspeed(id, speed). Hope this helps
|
| All times are GMT -4. The time now is 00:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.