05.05.2016, 16:18
Hello there.I want to ask if you guys can tell me how to modify this command so when an admin on duty use /b his text will show with a different color from normal players.
EX, normal player /b "white text"
admin on duty /b "red text"
Here is my command:
EX, normal player /b "white text"
admin on duty /b "red text"
Here is my command:
Код HTML:
CMD:b(playerid, params[]) { if(gPlayerLogged{playerid} == 0) { SendClientMessageEx(playerid, COLOR_GREY, "You're not logged in."); return 1; } if(isnull(params)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /b [local ooc chat]"); new string[128]; format(string, sizeof(string), "%s: (( %s ))", GetPlayerNameEx(playerid), params); ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); foreach(Player, i) { if(PlayerInfo[i][pAdmin] > 1 && BigEar[i] == 2) { new szAntiprivacy[128]; format(szAntiprivacy, sizeof(szAntiprivacy), "(BE) %s: %s", GetPlayerNameEx(playerid), params); SendClientMessageEx(i, COLOR_FADE1, szAntiprivacy); } } return 1; }