15.09.2015, 09:46
Are you looking for something like this?
Im confused by your use of "playerLevel" if i'm honest. is playerLevel the admin level of the player?
Код:
if(IsPlayerConnected(i) && playerData[i][playerLevel] >= 1 && playerData[i][playerLevel] < 7 && playerData[i][AHide] == 0) { // If admin level is higher than 1, here it goes... if(playerData[i][playerAdminLevel] == 1){ // If playerAdminLevel is equal to 1 format(string, sizeof(string), "%s%s(%i) - Moderator", string, playerData[i][tempAdminName], i, playerData[i][playerLevel]); }else if(playerData[i][playerAdminLevel] == 2){ format(string, sizeof(string), "%s%s(%i) - Higher Level Moderator", string, playerData[i][tempAdminName], i, playerData[i][playerLevel]); }else{ // any other levels format(string, sizeof(string), "%s%s(%i) - Level: %i\n", string, playerData[i][tempAdminName], i, playerData[i][playerLevel]); } count ++; }