Raised This Month: $ Target: $400
 0% 

when more than requiet ?!!!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 02-14-2017 , 08:54   when more than requiet ?!!!
Reply With Quote #1

hi guys.

i have problem with level when a player have more than level requiet he can't get the less guns level
Example :

Infinity black[lvl:0]
Balrog-I[lvl:1]

when a player have level 0 he can take the infinity black but if he get level up he can't get it anymore he can get only Blarog-I can you help me here is the part of the code where this 2 :
PHP Code:
Pistols_submenuid )
{
    
menu menu_create"Pistols Menu""submenu_handler" );

    
menu_additemmenu"Infinity black[lvl:0]""")
    
menu_additemmenu"Blarog-I[lvl:3]""")
    
menu_additemmenu"Dual Infinity[lvl:5]""")

    
menu_displayidmenu)
}
public 
submenu_handleridmenuitem )
{
    switch( 
item )
    {
        case 
0:
        {
            if(
ITEM1[id])
            {
                
client_print(idprint_center"you already have Infinity Black")
            }
            else
            {
                if(
is_user_connectedid ) && ( g_iLevel[id] == ))
                {
                    
client_cmdid"get_infb" )
                }
            }
        }
        case 
1:
        {
            if(
ITEM2[id])
            {
                
client_print(idprint_center"you already have Blarog-I")
            }
            else
            {
                if( 
is_user_connectedid ) && ( g_iLevel[id] == ))
                {
                    
client_cmdid"get_b1" )
                }
            }
        }
        case 
2:
        {
            if(
ITEM3[id])
            {
                
client_print(idprint_center"you already have Dual Infinity")
            }
            else
            {
                if( 
is_user_connectedid ) && ( g_iLevel[id] == ))
                {
                    
client_cmdid"get_infiniy" )
                }
            }
        }
        case 
MENU_EXIT:
        {
            if( 
is_user_connectedid ) )
            
main_menuid );
        }
    }
    
menu_destroymenu );
    return 
PLUGIN_HANDLED;

P.S: btw this happen with all guns every lvl up can't get the gun before it :/.

Thanks for advance.

Last edited by yas17sin; 02-14-2017 at 08:55.
yas17sin is offline
Send a message via ICQ to yas17sin
 



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 21:02.


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