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

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);
        strdel(ircMsg, 0, 4); // 0 is start of string and 4 is the end (!say is 4 char lenght)
        AddEcho(ircMsg);
        //IRC_GroupSay(gGroupID, IRC_CHANNEL, ircMsg);
        return 0;
    }
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)