Onplayercommandtext
#4

Quote:
Originally Posted by Bam23
Посмотреть сообщение
Im still confused how do i make more commands then?? Like how do i add more the link is confusing too. Sorry. I might be a pain in the ass...

Like can i have an example on how to repeat this for more commands?
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/cmd1", cmdtext, true, 10) == 0)
    {
        //DO YOUR THING
        return 1;
    }
    if (strcmp("/cmd2", cmdtext, true, 10) == 0)
    {
        //DO YOUR THING
        return 1;
    }
    //ECT....
    return 0;
}
Reply


Messages In This Thread
Onplayercommandtext - by Bam23 - 27.03.2011, 16:52
Re: Onplayercommandtext - by Stigg - 27.03.2011, 16:58
Re: Onplayercommandtext - by Bam23 - 27.03.2011, 17:09
Re: Onplayercommandtext - by Stigg - 27.03.2011, 17:11
Re: Onplayercommandtext - by mikeeee - 01.12.2011, 22:07
Re: Onplayercommandtext - by Rob_Maate - 01.12.2011, 23:43
Re: Onplayercommandtext - by Thresholdold - 01.12.2011, 23:50
Re: Onplayercommandtext - by grand.Theft.Otto - 02.12.2011, 01:48
Re: Onplayercommandtext - by ProdrifterX - 02.12.2011, 07:25
Re: Onplayercommandtext - by Rudy_ - 02.12.2011, 07:29

Forum Jump:


Users browsing this thread: 1 Guest(s)