06.07.2011, 19:16
you have updated the code since you put it on pastebin
here:
COMMAND:admins(playerid, params[])
{
new sendername[20];
new string[256];
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid,Green,"Admins Online:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[playerid][AdminLevel] >= 1)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Admin: %s", sendername);
SendClientMessage(playerid, Green, string);
}
}
}
}
return 1;
}
here:
COMMAND:admins(playerid, params[])
{
new sendername[20];
new string[256];
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid,Green,"Admins Online:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[playerid][AdminLevel] >= 1)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Admin: %s", sendername);
SendClientMessage(playerid, Green, string);
}
}
}
}
return 1;
}