21.03.2010, 11:26
How do i make this command
if (strcmp(command, "/admins", true) == 0) { SendClientMessage(playerid,COLOR_ADM,"The Admin List"); format(string,sizeof(string),"(ADMIN LEVEL NAME):"); for(new i = 0; i < SLOTS; i++) { if(AccountInfo[i][aAdmin] == 1) { format(string,sizeof(string),"%s %s,",string,PlayerName(i,false)); } } SendClientMessage(playerid,COLOR_WHITE,string); format(string,sizeof(string),"(ADMIN LEVEL NAME):"); for(new i = 0; i < SLOTS; i++) { if(AccountInfo[i][aAdmin] == 2) { format(string,sizeof(string),"%s %s,",string,PlayerName(i,false)); } } SendClientMessage(playerid,COLOR_WHITE,string); format(string,sizeof(string),"(ADMIN LEVEL NAME:)"); for(new i = 0; i < SLOTS; i++) { if(AccountInfo[i][aAdmin] == 3) { format(string,sizeof(string),"%s %s,",string,PlayerName(i,false)); } } SendClientMessage(playerid,COLOR_WHITE,string); format(string,sizeof(string),"(ADMIN LEVEL NAME;"); for(new i = 0; i < SLOTS; i++) { if(AccountInfo[i][aAdmin] == 4) { format(string,sizeof(string),"%s %s,",string,PlayerName(i,false)); } } SendClientMessage(playerid,COLOR_WHITE,string); return 1; }