AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Solved show admins (https://forums.alliedmods.net/showthread.php?t=329546)

ho83 12-28-2020 19:23

show admins
 
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

Napoleon_be 12-28-2020 21:22

Re: show admins
 
use get_user_flags() or simply is_user_admin()

ho83 12-29-2020 04:54

Re: show admins
 
Quote:

Originally Posted by Napoleon_be (Post 2730509)
use get_user_flags() or simply is_user_admin()

Thank you sir


All times are GMT -4. The time now is 22:02.

Powered by vBulletin®
Copyright ©2000 - 2022, vBulletin Solutions, Inc.