enum PLAYER_INFO
{
PLAYER_MONEY,
PLAYER_SKIN,
LOCATION,
DEATHS,
INTERIOR,
VIRTUALWORLD,
Float:HEALTH,
LOGGED,
ACTIVEREPORT,
REPORTED,
CHOUSEID,
VIP,
}
new PlayerInfo[MAX_PLAYERS][PLAYER_INFO];
CMD:admins( playerid, params[ ] )
{
SendClientMessage(playerid, COLOR_GREEN,"||Online Administrators||");
for(new i=0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && PlayerInfo[i][VIP] >= 2)
{
new name[MAX_PLAYER_NAME], string[180 + MAX_PLAYER_NAME];
GetPlayerName(i, name, sizeof(name));
new level = PlayerInfo[i][VIP];
format(string, sizeof(string), ""BLUE"%s"ORANGE"(%d)"WHITE" Admin Level: "ORANGE"%d",name,i,level);
SendClientMessage(playerid, 0x1E90FFAA, string);
}
else if(!IsPlayerConnected(i) && PlayerInfo[i][VIP] >= 2)
{
SendClientMessage(i,COLOR_RED,"No Online Admins");
}
}
return 1;
}
CMD:admins( playerid, params[ ])
{
SendClientMessage(playerid, COLOR_GREEN,"||Online Administrators||");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[i][VIP] >= 2)
{
new name[MAX_PLAYER_NAME], string[180 + MAX_PLAYER_NAME];
GetPlayerName(i, name, sizeof(name));
new level = PlayerInfo[i][VIP];
format(string, sizeof(string), ""BLUE"%s"ORANGE"(%d)"WHITE" Admin Level: "ORANGE"%d",name,i,level);
SendClientMessage(playerid, 0x1E90FFAA, string);
}
}
return 1;
}
CMD:admins(playerid, params[])
{
SendClientMessage(playerid, COLOR_GREEN,"||Online Administrators||");
new count = 0;
for(new i=0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && PlayerInfo[i][VIP] >= 2)
{
new name[MAX_PLAYER_NAME], string[180 + MAX_PLAYER_NAME];
GetPlayerName(i, name, sizeof(name));
new level = PlayerInfo[i][VIP];
format(string, sizeof(string), ""BLUE"%s"ORANGE"(%d)"WHITE" Admin Level: "ORANGE"%d",name,i,level);
SendClientMessage(playerid, 0x1E90FFAA, string);
count++;
}
}
if (count == 0) SendClientMessage(playerid, 0x1E90FFAA, "No admins online");
return 1;
}
Erm.. its a problem in the message, try to write the message without colors, remove blue orange etc.
|
format(string, sizeof(string), "%s (%d) Admin Level: %d",name,i,level);