Raised This Month: $ Target: $400
 0% 

Admin_level_f


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Shippuden
Junior Member
Join Date: Aug 2013
Old 08-15-2013 , 17:22   Admin_level_f
Reply With Quote #1

Hi, i tried to make this "Human Class" only for ADMIN_LEVEL_F but still do not working..

Code:
public HumanClassMenu( id )
{
    if( zp_get_user_zombie( id ) || g_iSaveCurClass[ id ] != 0 )
    {
        print_chatColor( id, "\g[ZP] Nemozes izabrati klas kad si \tZombie." )
        return PLUGIN_HANDLED
    }
    
    if( zp_get_user_nemesis( id ) || g_iSaveCurClass[ id ] != 0 )
    {
        print_chatColor( id, "\g[ZP] Nemozes izabrati klas kad si \tNemesis." )
        return PLUGIN_HANDLED
    }
    
    if( zp_get_user_survivor( id ) || g_iSaveCurClass[ id ] != 0 )
    {
        print_chatColor( id, "\g[ZP] Nemozes izabrati klas kad si \tSurvivor." )
        return PLUGIN_HANDLED
    }
    
    new menu = menu_create( "\yIzaberi tvoj klas:", "menu_handler" )
    
    menu_additem( menu, "\wGhost - \r[ Extra Dmg & Disinfection & More Weapons ]", "1" )
    
    menu_setprop( menu, MPROP_EXIT, MEXIT_ALL )
    menu_display( id, menu, 0 )
    
    return PLUGIN_HANDLED
}
Code:
public menu_handler( id, menu, item )
{
    client_cmd(id, "spk zombie_plague/select"); 
    
    if(item == MENU_EXIT) 
    { 
        menu_destroy(menu); 
        return PLUGIN_CONTINUE; 
    }        
    
    item++; 
    
    new ile = 0; 
    for(new i=1; i<sizeof nazwy_klas; i++) 
    { 
        if(nalezy_do[i] == frakcja_gracza[id]){ 
            ile++; 
        } 
        if(ile == item)
        { 
            item = i; 
            break; 
        } 
    }
    
    if( item == Ghost && !(get_user_flags(id) & ADMIN_LEVEL_F ))
    { 
        print_chatColor(id, "\g[ZP] Nemate pristup Premium Klasi, cena Premium klasi je 1 \tBOOST."); 
        HumanClassMenu( id ); 
        return PLUGIN_HANDLED; 
    }
Shippuden is offline
 



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 15:49.


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