26.06.2015, 21:16
Hey i been stuck on this for a lil while and really want it for my RP server. Okay so I want it to be when a Admin go on duty it sets there name green over /b (Local OOC chat) So when a admin get a report and they spec someone they can be like
"(([12]Bob_Smith: Why did you killl Jason ?))"
And the admin name is Green In the Local OOC chat... How do I do this ?
"(([12]Bob_Smith: Why did you killl Jason ?))"
And the admin name is Green In the Local OOC chat... How do I do this ?
Код:
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_GREEN, szAntiprivacy); } } return 1; }