HNS Vipmenu
Hey, could someone please make this plugin so that i can only use the command once per round.
i think its something to do with bool:AlreadyUsed[33] but i dont know how to make it work. if someone could help me i would be happy :) PHP Code:
|
Re: HNS Vipmenu
PHP Code:
|
Re: HNS Vipmenu
When i try to compile, this line has error.
PHP Code:
how to fix? |
Re: HNS Vipmenu
if(!AlreadyUsed[id])
{ g_iMenuId = menu_create("\yVipmenu", "HandleMenu"); menu_additem(g_iMenuId, "HE", "1"); menu_additem(g_iMenuId, "FBx2", "2"); menu_additem(g_iMenuId, "FN", "3"); menu_additem(g_iMenuId, "USP(2bullets)", "4"); } Put this part in the VMENU function... |
Re: HNS Vipmenu
Doesn't work.
|
Re: HNS Vipmenu
try again.
|
Re: HNS Vipmenu
PHP Code:
|
Re: HNS Vipmenu
I can still use the /vipmenu command more than once at one round
|
Re: HNS Vipmenu
|
Re: HNS Vipmenu
Do you want to limit the menu to only display once, or be able to use the options in the menu only once?
If you want it only to be able to display the menu once, then move AlreadyUsed[id] = true from HandleMenu() to VMENU() inside the IF statement. Also, add this to plugin_init: register_event("RoundTime", "new_round", "bc") and a new function: PHP Code:
|
| All times are GMT -4. The time now is 21:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.