15.08.2012, 02:33
pawn Код:
if(strcmp("/admins", cmdtext, true) == 0)
{
new Count = 0;
SendClientMessage(playerid, -1, "--- Administradores En Linea ---");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[i][pAdmin] > 0)
{
new name[MAX_PLAYER_NAME], string[100];
GetPlayerName(i, name, sizeof(name));
if(AdminDuty[i] = 1)
{
format(string, sizeof(string), "%s - Nivel %d [En Servicio]", name, PlayerInfo[i][pAdmin]);
SendClientMessage(playerid, -1, string);
Count++;
}
else if(AdminDuty[i] = 0)
{
format(string, sizeof(string), "%s - Nivel %d", name, PlayerInfo[i][pAdmin]);
SendClientMessage(playerid, -1, string);
Count++;
}
}
}
if(Count == 0)
{
SendClientMessage(playerid, -1, "No hay administradores en linea");
}
return 1;
}
Si no es esta, modificala!
Saludos...