11.06.2010, 10:15
Oh yeah my bad
Код:
if (!strcmp(cmdtext, "/staff", true, 6)) { new sendername[128], string[128]; SendClientMessage(playerid, COLOR_GREY, "Admins Online:"); for(new i = 0; i <= MAX_PLAYERS; i++) { if(IsPlayerConnected(i) && PlayerInfo[i][pAdmin] > 0) { GetPlayerName(i, sendername, sizeof(sendername)); if(PlayerInfo[i][pAdminDuty]==0) { format(string, sizeof(string), "%s is off duty.", sendername); } else if(PlayerInfo[i][pAdminDuty]==1) { format(string, sizeof(string), "%s is on duty.", sendername); } SendClientMessage(playerid, COLOR_WHITE, string); } } return 1; }