11.06.2010, 07:19
Код:
if (strcmp(cmd, "/staff", true) == 0)
{
SendClientMessage(playerid, COLOR_GREY, "Admins Online:");
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1 && PlayerInfo[i][pAdmin] > 0)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "%s - %s", sendername,PlayerInfo[i][pAdminDuty]);
SendClientMessage(playerid, COLOR_WHITE, string);
}
return 1;
}
}
Spencer_Hunt [On Duty] if they're on duty,
and
Spencer_Hunt [Off Duty] if they're off duty.
Thanks!
- Eric
P.S:
If pAdminDuty is 0 they're off duty.
If pAdminDuty is 1 they're on duty.
Thanks!


