[HELP]Creating commands that use '!' instead of '/'
#4

Here's my command...
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;
    }
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."
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)