"CMD:admins" Help
#5

CMD:admins(playerid,params[]){
#pragma unused params
new Count = 0;
new n[MAX_PLAYER_NAME];
new string[1000];
// SendClientMessage(playerid, 0x00FF00FF, "__________|Admins|__________");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i)) continue;
if(PlayerInfo[i][Level] < 1) continue;
GetPlayerName(i,n,sizeof(n));
format(string, 1000, "%sLevel %d: {FF9900}%s {FFFF00}(ID: %d) - %s\n", string, PlayerInfo[i][Level], n, i, GetRankFromLevel(i));
Count++;
}
if(Count == 0)
{
SendClientMessage(playerid, green, "___________|- Online Admins -|___________");
SendClientMessage(playerid, red, "No admin online in the list");
SendClientMessage(playerid, green, "_________________________________________");
return 1;
}
SendClientMessage(playerid, green, "___________|- Online Admins -|___________");
SendClientMessage(playerid, red, string);
SendClientMessage(playerid, green, "_________________________________________");
return 1;
}
Reply


Messages In This Thread
"CMD:admins" Help - by Filbert - 26.05.2016, 09:20
Re: "CMD:admins" Help - by Luicy. - 26.05.2016, 09:36
Re: "CMD:admins" Help - by Nin9r - 26.05.2016, 09:41
Re: "CMD:admins" Help - by Dayrion - 26.05.2016, 09:43
Re: "CMD:admins" Help - by Filbert - 26.05.2016, 09:47
Re: "CMD:admins" Help - by Zorono - 26.05.2016, 11:36
Re: "CMD:admins" Help - by IceBilizard - 26.05.2016, 12:01
Re: "CMD:admins" Help - by oMa37 - 26.05.2016, 12:51
Respuesta: "CMD:admins" Help - by maverick91 - 28.05.2016, 02:30

Forum Jump:


Users browsing this thread: 1 Guest(s)