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

What I was saying was that when I type in '!say hi' it will say this in the IRC.
Код:
[DR]Sc0pe: !say hey everybody
What I am wondering is how that I would make it say this
Код:
[DR]Sc0pe: hey everybody
My Script...
pawn Код:
if(strfind(text,"!say",true)!= -1 )
    {
        new name[MAX_PLAYER_NAME];
        new ircMsg[128];
        GetPlayerName(playerid, name, sizeof(name));
        format(ircMsg, sizeof(ircMsg), "[%d] 07%s: %s", playerid, name, text);
        AddEcho(ircMsg);
        //IRC_GroupSay(gGroupID, IRC_CHANNEL, ircMsg);
        return 0;
    }
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)