21.06.2011, 00:37
pawn Код:
if(!strcmp(cmdtext, "/guardioes", true))
{
SendClientMessage(playerid,0x0080C0AA, "» Guardioes Online:");
static
iGuardas = 0;
sString[128];
for(new i; i < MAX_PLAYERS; i++)
{
if(!Guardiao[i] || !IsPlayerConnected(i)) continue;
iGuardas++;
{
GetPlayerName(i, sString, MAX_PLAYER_NAME);
format(sString, 128, "%s (%d)", sString, i);
SendClientMessage(playerid, 0xFFFFFFAA, sString);
}
}
if(!iGuardas) SendClientMessage(playerid, -1, "Nгo hб nenhum guardiгo online.");
return true;
}