21.06.2011, 05:38
Quote:
Wrong!
Код:
if(strcmp(cmd,"/admins",true)==0){ new admname[MAX_STRING]; SendClientMessage(playerid, COLOR_GREEN, "..:: Admin List ::.."); for(new i=0;i<MAX_PLAYERS;i++){ if((PlayerInfo[i][power]>0 && IsPlayerConnected(i)){ // power=pAdmin if(PlayerTemp[i][OnDuty]){ format(admname,sizeof(admname),"Admin %s [Level: %d] [On Duty]",PlayerName(i),PlayerInfo[i][power]); SendClientMessage(playerid, COLOR_GREEN, admname); } else{ format(admname,sizeof(admname),"Admin %s [Level: %d] [Off Duty]",PlayerName(i),PlayerInfo[i][power]); SendClientMessage(playerid, COLOR_RED, admname); } return 1; } } return 1; } |