Raised This Month: $305 Target: $400
 76%   Almost there!

Solved show admins


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ho83
Senior Member
Join Date: Aug 2020
Location: iran
Old 12-28-2020 , 18:23   show admins
Reply With Quote #1

Hi this code show a list of Players. But i want show a list of admins Only
PHP Code:
    new menu menu_create ("\yList""list_handler")
    
    new 
numplayers[32], tempidszTempID [10], tempname [32]
    
get_players (playersnum"a")
    
    for (new 
0numi++)
    {
    
tempid players ]
        
    
get_user_name (tempidtempname31)
    
num_to_str (tempidszTempID9)
    
menu_additem (menutempnameszTempID0)
    } 
Thanks

Last edited by ho83; 01-05-2021 at 07:23.
ho83 is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 12-28-2020 , 20:22   Re: show admins
Reply With Quote #2

use get_user_flags() or simply is_user_admin()
__________________
My Plugins:


Accepting private projects.

Last edited by Napoleon_be; 12-28-2020 at 20:22.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
ho83
Senior Member
Join Date: Aug 2020
Location: iran
Old 12-29-2020 , 03:54   Re: show admins
Reply With Quote #3

Quote:
Originally Posted by Napoleon_be View Post
use get_user_flags() or simply is_user_admin()
Thank you sir
ho83 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 02:52.


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