02.01.2012, 19:23
//=========================== [Chat Commands]=================================//
// OOC
Hope this helped =)
// OOC
Код:
COMMAND:o(playerid, params[]) { new sendername[MAX_PLAYER_NAME]; new string[256]; GetPlayerName(playerid, sendername, sizeof(sendername)); if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "Use /o (OOC-G)"); format(string, sizeof(string), "((OOC)): %s %s ", sendername, params); ProxDetector(9999.0, playerid, string, COLOR_GREY); return 1; } COMMAND:ooc(playerid, params) { return cmd_ooc(playerid, params); } // Local OCC COMMAND:l(playerid, params[]) { new sendername[MAX_PLAYER_NAME]; new string[128]; GetPlayerName(playerid, sendername, sizeof(sendername)); if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "Use /l (Text)"); format(string, sizeof(string), "((OOC-L)) %s %s ", sendername, params); ProxDetector(20.0, playerid, string, COLOR_GREY); return 1; } // Me COMMAND:me(playerid, params[]) { new sendername[MAX_PLAYER_NAME]; new string[128]; GetPlayerName(playerid, sendername, sizeof(sendername)); if(isnull(params)) return SendClientMessage(playerid, 0xFFFF00AA, "[USAGE]: /me [acion]"); format(string, sizeof(string), "%s %s", sendername, params); ProxDetector(10.0, playerid, string, COLOR_LIGHTBLUE); return 1; }