Raised This Month: $ Target: $400
 0% 

Help for script..


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
supertrio17
Senior Member
Join Date: May 2020
Location: Serbia
Old 06-26-2020 , 09:34   Re: Help for script..
Reply With Quote #1

Easiest way to do this (that I can think of) is something like this
PHP Code:
        menu_additem(Menu"\rM4A1""1")
        
menu_additem(Menu"\rAK47""2")
        
menu_additem(Menu"M3""3")
        
menu_additem(Menu"Aug""4")
        
menu_additem(Menu"Famas""5")
        if(
get_user_flags(id) & VIP_LEVEL_ACCES)
        {
            
menu_additem(Menu"\rMP5 Navy \w- \r[\yACCES V.I.P\r]""6")
            
menu_additem(Menu"\rXM1014 \w- \r[\yACCES V.I.P\r]""7")
        }
        else
        {
            
menu_additem(Menu"\dMP5 Navy [\yACCES V.I.P]""6")
            
menu_additem(Menu"\dXM1014 [\yACCES V.I.P]""7")
        }
        
        
menu_setprop(MenuMPROP_EXITMEXIT_ALL);
        
menu_display(idMenu0); 
And than I would do this in cases:
PHP Code:
        case 6:
        {
            if(
get_user_flags(id) & VIP_LEVEL_ACCES)
            {
                
give_item(id"");
            }
            else
            {
                
WeaponMenu(id);
            }
        }
        case 
7:
        {
            if(
get_user_flags(id) & VIP_LEVEL_ACCES)
            {
                
give_item(id"");
            }
            else
            {
                
WeaponMenu(id);
            }
        } 
__________________
Contact! || Discord:
Mr_Boopsy_#2066

Last edited by supertrio17; 06-26-2020 at 09:46. Reason: typo
supertrio17 is offline
AnimalMonster
Senior Member
Join Date: May 2020
Old 06-26-2020 , 09:40   Re: Help for script..
Reply With Quote #2

Quote:
Originally Posted by supertrio17 View Post
Easiest way to do this (that I can think of) is something like this
PHP Code:
        menu_additem(Menu"\rM4A1""1")
        
menu_additem(Menu"\rAK47""2")
        
menu_additem(Menu"M3""3")
        
menu_additem(Menu"Aug""4")
        
menu_additem(Menu"Famas""5")
        if(
get_user_flags(id) & VIP_LEVEL_ACCES)
        {
            
menu_additem(Menu"\rMP5 Navy \w- \r[\yACCES V.I.P\r]""6")
            
menu_additem(Menu"\rXM1014 \w- \r[\yACCES V.I.P\r]""7")
        }
        else
        {
        {
            
menu_additem(Menu"\dMP5 Navy [\yACCES V.I.P]""6")
            
menu_additem(Menu"\dXM1014 [\yACCES V.I.P]""7")
        }
        }
        
        
menu_setprop(MenuMPROP_EXITMEXIT_ALL);
        
menu_display(idMenu0); 
And than I would do this in cases:
PHP Code:
        case 6:
        {
            if(
get_user_flags(id) & VIP_LEVEL_ACCES)
            {
                
give_item(id"");
            }
            else
            {
                
WeaponMenu(id);
            }
        }
        case 
7:
        {
            if(
get_user_flags(id) & VIP_LEVEL_ACCES)
            {
                
give_item(id"");
            }
            else
            {
                
WeaponMenu(id);
            }
        } 
i would do the same but why 2 braces??? + i would add a inc of color chat and to say in chat that he's not vip bcs it would personalize the plugin a little
AnimalMonster is offline
supertrio17
Senior Member
Join Date: May 2020
Location: Serbia
Old 06-26-2020 , 09:45   Re: Help for script..
Reply With Quote #3

That was a typo, and adding color messages is just a personal choice, he didn't ask for it, so why build it.
__________________
Contact! || Discord:
Mr_Boopsy_#2066
supertrio17 is offline
AnimalMonster
Senior Member
Join Date: May 2020
Old 06-26-2020 , 10:00   Re: Help for script..
Reply With Quote #4

Quote:
Originally Posted by supertrio17 View Post
That was a typo, and adding color messages is just a personal choice, he didn't ask for it, so why build it.
I know lmao, i just said what i would do in his spot
AnimalMonster 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:00.


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