CMD:me(playerid, text[]) { new string[128]; if(sscanf(text, "u", text)) return SendClientMessage(playerid, -1, "{a09d7b}SYNTAX: /me [action]"); else { format(string, 128, "* %s %s", GetName(playerid), text); for(new i = 0; i < MAX_PLAYERS; i++){ new Float: Pos[3]; GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]); if(IsPlayerInRangeOfPoint(i, 10.0, Pos[0], Pos[1], Pos[2])) { SendClientMessage(i, COLOR_ME, string); } } } return 1; }
* RetroEX яhis is a test.
if(sscanf(text, "u", text)) return SendClientMessage(playerid, -1, "{a09d7b}SYNTAX: /me [action]");
if(sscanf(text, "s[128]", text)) return SendClientMessage(playerid, -1, "{a09d7b}SYNTAX: /me [action]");
Код:
if(sscanf(text, "u", text)) return SendClientMessage(playerid, -1, "{a09d7b}SYNTAX: /me [action]"); Use this: Код:
if(sscanf(text, "s[128]", text)) return SendClientMessage(playerid, -1, "{a09d7b}SYNTAX: /me [action]"); |