14.03.2018, 07:01
These r my cmds
./me Takes out a tissue paper.
./do Will you allow Omer ? ((Omer))
It will show as
Omer Takes
Will ((Omer))
same for /do cmd, idk why only 1st word is shown
Код:
CMD:me(playerid, params[]) { new string[256], msg[256]; if(sscanf(params, "sz", msg)) return SendClientMessage(playerid,COLOR_RED, "SYNTAX: /me <text>"); format(string, sizeof(string), "%s %s", GetName(playerid), msg); SendClientMessageToAll(COLOR_PURPLE, string); return 1; }
Код:
CMD:do(playerid, params[]) { new string[256], msg[256]; if(sscanf(params, "sz", msg)) return SendClientMessage(playerid,COLOR_RED, "SYNTAX: /do <text>"); format(string, sizeof(string), "%s. ((%s))", msg, GetName(playerid)); SendClientMessageToAll(COLOR_PURPLE, string); return 1; }
./do Will you allow Omer ? ((Omer))
It will show as
Omer Takes
Will ((Omer))
same for /do cmd, idk why only 1st word is shown