18.05.2013, 20:00
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/admins", true) == 0)
{
new Jogador[24];
new count5;
new msg[120];
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && IsPlayerAdmin(i))
{
GetPlayerName(i,Jogador,24);
format(msg,sizeof(msg),"Admins Online: %s", Jogador);
SendClientMessage(playerid, 0xFFFFFFFF, msg);
count5++;
}
}
if(count5 == 0)
{
SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}[Brasil truck] Nenhum Admin Online no Momento Aguarde.");
}
return 1;
}
return 1;
}