19.07.2014, 22:28
When I go in game and chat in /o it does not come up with your Admin Rank, it only said 'Administrator', can anyone help me to get this set to the correct player rank!?
Code:
Code:
Quote:
CMD: o(playerid, params[]) { if(gPlayerLogged{playerid} == 0) { SendClientMessageEx(playerid, COLOR_GREY, "You're not logged in."); return 1; } if ((noooc) && (PlayerInfo[playerid][pAdmin] < 2 && EventKernel[EventCreator] != playerid && PlayerInfo[playerid][pDonateRank] < 6 && !OOCPower[playerid] && PlayerInfo[playerid][pHelper] < 4)) { SendClientMessageEx(playerid, COLOR_GRAD2, " The OOC channel has been disabled by an Admin!"); return 1; } if(gOoc[playerid]) { SendClientMessageEx(playerid, TEAM_CYAN_COLOR, " You have disabled OOC Chat, re-enable with /togooc!"); return 1; } if(isnull(params)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: (/o)oc [ooc chat]"); if(PlayerInfo[playerid][pAdmin] == 1) { new string[128]; format(string, sizeof(string), "(( Moderator %s: %s ))", GetPlayerNameEx(playerid), params); OOCOff(COLOR_OOC,string); } else if(PlayerInfo[playerid][pAdmin] >= 2) { new string[128]; format(string, sizeof(string), "(( Administrator %s: %s ))", GetPlayerNameEx(playerid), params); OOCOff(COLOR_OOC,string); } else if(PlayerInfo[playerid][pAdmin] >= 999999) { new string[128]; format(string, sizeof(string), "(( Server Owner %s: %s ))", GetPlayerNameEx(playerid), params); OOCOff(COLOR_OOC,string); } else if(PlayerInfo[playerid][pHelper] >= 2) { new string[128]; format(string, sizeof(string), "(( Community Advisor %s: %s ))", GetPlayerNameEx(playerid), params); OOCOff(COLOR_OOC,string); return 1; } else if(PlayerInfo[playerid][pDonateRank] == 6) { new string[128]; format(string, sizeof(string), "(( Special Moderator %s: %s ))", GetPlayerNameEx(playerid), params); OOCOff(COLOR_OOC,string); return 1; } else if(PlayerInfo[playerid][pAdmin] < 1 && PlayerInfo[playerid][pHelper] <= 2) { new string[128]; format(string, sizeof(string), "(( %s: %s ))", GetPlayerNameEx(playerid), params); OOCOff(COLOR_OOC,string); return 1; } return 1; } |