26.07.2012, 21:42
I want make command (let we say /me) that will do this
Joseph says hy
Let me explain. I dont want this: Joseph: says hy i want message without : to public chat
Joseph says hy
Let me explain. I dont want this: Joseph: says hy i want message without : to public chat
PHP код:
CMD:me(playerid,params[])
{
new string[126], metext, playername;
if(sscanf(params, "s", metext)) return SendClientMessage(playerid, -1, "Usage: /me [text]");
GetPlayerName(playerid, playername, sizeof(playername));
format(string,sizeof(string), "%s(%d) says %s", playername, playerid, metext);
SendClientMessageToAll(-1, string);
return 1;
}