 |
|
AlliedModders Donor
|

02-23-2013
, 19:12
Re: Re: custom /admins "online" ?
|
#5
|
Quote:
Originally Posted by Blizzard_87
SOLVED:
PHP Code:
public onlineadmins(id) { new players[32],pnum, player; get_players(players,pnum);
get_pcvar_string(TAG, PREFIX, charsmax(PREFIX));
new temp[216],name[32], count
for( new i; i<pnum; i++ ) { if(!g_HideRank[players[i]]) { player = players[i] count++ get_user_name(player,name,31) formatex(temp,215,"%s %s !n(!g%s!n),!t ", temp, name, AccessType[RankName[players[i]]]) } } if(count) client_printc(id, "!g[%s]!n Admins Online:!t %s!n", PREFIX, temp) else client_printc(id, "!g[%s]!n No admins online.", PREFIX)
return PLUGIN_HANDLED; }
|
Then formatex is what you want like you did
|
|
|
|