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; }
#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; }
#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; }
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; }
Код:
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; } |
//line 10 format(string, sizeof(string), "(({00FF00}%s: {FFFFFF}%s ))", GetPlayerNameEx(playerid), params);
if (player is admin) // check comment1 bellow format(string, sizeof(string), "(({00FF00}%s: {FFFFFF}%s ))", GetPlayerNameEx(playerid), params); else format(string, sizeof(string), "((%s: %s ))", GetPlayerNameEx(playerid), params);
if(PlayerInfo[i][pAdmin] >= 1)