Miscellany
public text v1 · immutableif(strcmp(cmd, "/list", true) == 0)
{
if (gTeam[playerid] == TEAM_CIVILLIAN || gTeam[playerid] == TEAM_CNN || gTeam[playerid] == TEAM_MEDIC || gTeam[playerid] == TEAM_MILITARY) {SendPlayerFormattedText(playerid,"This command is for officers only",0); return 1;
}else {
for(new i=0; i<MAX_PLAYERS; i++) {
if(IsPlayerConnected(i)){
if (gWanted[pid]) {
SendClientMessage(playerid,COLOR_WHITE,gWanted);
}
}
}
}
return 1;
}