Thread: [Solved] [CSGO] !admins online
View Single Post
PorcusorulMagic
Member
Join Date: Dec 2018
Location: Romania
Old 04-04-2019 , 03:10   Re: [CSGO] !admins online
Reply With Quote #7

Quote:
Originally Posted by Ilusion9 View Post
https://sm.alliedmods.net/new-api/admin/GetAdminGroup

Returns group information from an admin.
A GroupId index and a name pointer, or INVALID_GROUP_ID and NULL if an error occurred.

PHP Code:
if(GetAdminGroup(ClientAccessxGroupNamesizeof(GroupName)) != ADMFLAG_ROOT
this is so wrong ...

PHP Code:

AdminId admin 
GetUserAdmin(index); 

if (
admin != INVALID_ADMIN_ID// has flags
{
       
char group[64];
       if (
admin.GetGroup(0groupsizeof(group)) != INVALID_GROUP_ID// get his first group
       
{
              
PrintToChat(client"%s : %N"groupindex);
       }

I didn't want this because i want to see admins list with all ranks and i want to put a variety of colors
__________________
Steam - https://steamcommunity.com/id/porcusorulmagic
Discord - PorcusorulMagic#4908
PorcusorulMagic is offline