Raised This Month: $51 Target: $400
 12% 

#'Show Player InfoV1.3'# (For admins only)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
echo_cs
Senior Member
Join Date: Dec 2011
Old 12-16-2011 , 09:24   Re: #'Show Player InfoV1.3'# (For admins only)
Reply With Quote #35

Quote:
Originally Posted by kramesa View Post
PHP Code:
    if(!is_user_admin(id) )
        return 
PLUGIN_CONTINUE 
LOL?

Use:

PHP Code:
public Menu_info(id)
{
    if(!
get_cvar_num("show_info"))
    { 
        return 
PLUGIN_CONTINUE
    
}
    
    if(!
is_user_admin(id))
    {
        
        
        new 
menu menu_create("\rSelect the Player:""menu_handler");
        
        new 
players[32], pnumtempid;
        
        new 
szName[32], szTempid[10];
        
        
get_players(playerspnum);
        
        for( new 
ii<pnumi++ )
        {
            
tempid players[i];
            
            
get_user_name(tempidszNamecharsmax(szName));
            
num_to_str(tempidszTempidcharsmax(szTempid));
            
            
menu_additem(menuszNameszTempid0);
            
        }
        
menu_display(idmenu0);
        return 
PLUGIN_CONTINUE
    
}


Ok Plugin Updete
Attached Files
File Type: sma Get Plugin or Get Source (showinfo.sma - 479 views - 2.0 KB)
__________________
Pawn (5%)

C (80%)

C++ (20%)

SQL (5%)
echo_cs 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 14:43.


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