22.01.2014, 11:57
How I can set a color to admins on duty this is the command of /b:
Quote:
CMD:b(playerid, params[]) { new string[128]; if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command."); if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid, COLOR_WHITE, "[Usage]: /b [text] (Local OOC Chat)"); if(AntiAdv(playerid, params)) return 1; //format(string, sizeof(string), "(( %s Says: %s ))", RPN(playerid), params); format(string, sizeof(string), "(( [%i] %s Says: %s ))", playerid, RPN(playerid), params); SendNearbyMessage(playerid, 10, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5); Log("logs/chat.log", string); return 1; } |