#1

Hello guys...im learning pawno and im wondering how to do this:
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
Thanks.
Reply
#2

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

PHP код:
CMD:me(playerid,params[])
{
   new 
string[126], metextplayername;
   if(
sscanf(params"s"metext)) return SendClientMessage(playerid, -1"Usage: /me [text]");
   
GetPlayerName(playeridplayernamesizeof(playername));
   
format(string,sizeof(string), "%s(%d) says %s"playernameplayeridmetext);
   
SendClientMessageToAll(-1string);
   return 
1;

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)