01.04.2011, 01:21
Here's my command...
If I type "!say hi", the IRC will also say "!say hi." I'm wondering how do I make it so that "!say" doesn't appear and only the text that the player typed after "!say."
pawn Код:
if(strfind(text,"!say",true)!= -1 )
{
new name[MAX_PLAYER_NAME];
new ircMsg[128];
GetPlayerName(playerid, name, sizeof(name));
format(ircMsg, sizeof(ircMsg), "02[%d] 07%s: %s", playerid, name, text);
AddEcho(ircMsg);
//IRC_GroupSay(gGroupID, IRC_CHANNEL, ircMsg);
return 1;
}