Raised This Month: $ Target: $400
 0% 

Solved VIP MENU


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LearninG
Senior Member
Join Date: Apr 2019
Location: Iran
Old 08-29-2019 , 05:49   Re: VIP MENU
Reply With Quote #1

1- declare a bool :
PHP Code:
new boolg_check[33
2- set it "false" on new round function :
PHP Code:
g_check[id] = false 
3- after giving weapons to vip , set the bool to true :
PHP Code:
g_check[id] = true 
4- on menu_handler function or before show_menu native , check if bool is false :
PHP Code:
if (g_check[id] == false )
{
       
//code

or
PHP Code:
if (g_check[id] == true )
{
      
client_print(idprint_chat "[AMXX] You can use menu only once per round!")
      return 
PLUGIN_HANDLED
}
else
{
      
//code


Last edited by LearninG; 08-29-2019 at 05:51.
LearninG is offline
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 17:28.


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