05.07.2018, 21:17
Код HTML:
CMD:me(params[], playerid) { // if(isnull(params)) { // SendClientMessageToAll(COLOR_ME, "Usage: /me [action]"); // return 1; // } // else { // new string[256], // name[MAX_PLAYER_NAME + 1]; // GetPlayerName(playerid, name, sizeof(name)); // format(string, sizeof(string), "%s %s", name, params); // SendClientMessageToAll(COLOR_ME, string); // return 1; // } new action[256], name[MAX_PLAYER_NAME + 1], string[256]; if (sscanf(params, "sz", action)) { return SendClientMessageToAll(0xC4C4C4FF, "Usage: /me [action]"); } GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "%s %s", name, action); SendClientMessageToAll(COLOR_ME, string); return 1; }
Thanks in advance!!!