Raised This Month: $ Target: $400
 0% 

Why this check doesnt work?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
danonix
Senior Member
Join Date: Dec 2012
Old 05-07-2013 , 12:13   Re: Why this check doesnt work?
Reply With Quote #5

It looks like this
PHP Code:
public cbMyMenu(idmenuitem){
    static 
stats[8]
    new 
prefix[10];
    
get_pcvar_string(g_cPrefixprefixcharsmax(prefix)); 
    if(!
is_user_alive(id)){
        
ColorChat(idGREEN"[%s]^x01 Nie mozesz zmienic noza bedac niezywym"prefix);
        return 
PLUGIN_HANDLED
    
}
    
    switch(
item){
        case 
0:{
            if(
stats[0] < 50){
                
client_print(idprint_chat"You cant use this knife");
                return 
PLUGIN_HANDLED
            
}
            else 
SetKnife(id0)
        }


Last edited by danonix; 05-07-2013 at 12:14.
danonix 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 10:57.


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