26.06.2015, 21:24
On Top Of Gamemode:
Another example:
{0000FF}Blue: {FFFFFF} Hello!!!
Код:
#define COLOR_USAGE 0x00FF00 //{00FF00}
Код:
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), "{00FF00}%s: (( {FFFFFF}%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) {0000FF}%s: {FFFFFF}%s", GetPlayerNameEx(playerid), params); SendClientMessageEx(i, COLOR_GREEN, szAntiprivacy); } } return 1; }
{0000FF}Blue: {FFFFFF} Hello!!!