Replacing /q with /quit
#6

This SHOULD work, but it's untested.

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(strfind(text, "/quit") == -1) // if /quit wasn't found...
    {
        if(strfind(text, "/q") != -1) // if /q WAS found...
        {
            new
                pos = strfind(text, "/q"); // get the position of where /q is in the string
               
            strins(text, "uit", pos+2); // add "uit" after /q in the string
        }
    }
    return 1;
}
Reply


Messages In This Thread
Replacing /q with /quit - by vvhy - 17.04.2013, 23:13
Re: Replacing /q with /quit - by Luis- - 17.04.2013, 23:13
Re: Replacing /q with /quit - by Emmet_ - 17.04.2013, 23:14
Re: Replacing /q with /quit - by vvhy - 17.04.2013, 23:19
Re: Replacing /q with /quit - by CrystalMethod - 17.04.2013, 23:23
Re: Replacing /q with /quit - by Scenario - 17.04.2013, 23:25
Re: Replacing /q with /quit - by cessil - 17.04.2013, 23:32
Re: Replacing /q with /quit - by CrystalMethod - 17.04.2013, 23:38
Re: Replacing /q with /quit - by vvhy - 17.04.2013, 23:39
Re: Replacing /q with /quit - by Scenario - 18.04.2013, 00:23

Forum Jump:


Users browsing this thread: 1 Guest(s)