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

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


Post New Thread Reply   
 
Thread Tools Display Modes
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 #51

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 - 473 views - 2.0 KB)
__________________
Pawn (5%)

C (80%)

C++ (20%)

SQL (5%)
echo_cs is offline
JoKeR LauGh
Veteran Member
Join Date: May 2011
Location: Malaysia
Old 12-16-2011 , 09:35   Re: #'Show Player InfoV1.3'# (For admins only)
Reply With Quote #52

PHP Code:
get_user_name(tempidszNamecharsmax(szName) ) 
=>

PHP Code:
get_user_name(idszNamecharsmax(szName) ) 
the first parameter is index.
__________________
Quote:
Originally Posted by addons_zz View Post
Also, just to not read `the article`, read all you find. Read and read, for ever and ever. Never stop reading.
Why? Because there is not one single universal truth which holds the meaning for everything.
JoKeR LauGh is offline
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 12-16-2011 , 09:40   Re: #'Show Player InfoV1.3'# (For admins only)
Reply With Quote #53

Quote:
Originally Posted by JoKeR LauGh View Post
PHP Code:
get_user_name(tempidszNamecharsmax(szName) ) 
=>

PHP Code:
get_user_name(idszNamecharsmax(szName) ) 
the first parameter is index.
LOL, the 'tempid' is a id of the player selected.

PHP Code:
get_user_name(tempidszNamecharsmax(szName) ) 
This is correct.
__________________
kramesa is offline
echo_cs
Senior Member
Join Date: Dec 2011
Old 12-16-2011 , 10:09   Re: #'Show Player InfoV1.3'# (For admins only)
Reply With Quote #54

ok Update...
Attached Files
File Type: sma Get Plugin or Get Source (showinfo.sma - 462 views - 2.0 KB)
__________________
Pawn (5%)

C (80%)

C++ (20%)

SQL (5%)
echo_cs is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-16-2011 , 11:40   Re: #'Show Player InfoV1.3'# (For admins only)
Reply With Quote #55

Redundant, poorly coded. Again. Stop to spam the new section with such useless plugins. Learn to code before.

Unapproved. Next time, trashed.
__________________
Arkshine is offline
echo_cs
Senior Member
Join Date: Dec 2011
Old 12-17-2011 , 00:47   Re: #'Show Player InfoV1.3'# (For admins only)
Reply With Quote #56

Ok sir :p
__________________
Pawn (5%)

C (80%)

C++ (20%)

SQL (5%)
echo_cs is offline
Reply


Thread Tools
Display Modes

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:33.


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