SA-MP Forums Archive
Back In trouble!! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Back In trouble!! (/showthread.php?tid=487788)



Back In trouble!! - HitterHitman - 15.01.2014

Hey mates i want little help. Is there is a way to return a player to another cmd when the functions of the first cmd completes.

I mean when player A uses /cmd1 then the functions of cmd1 completes and also returns the player to another cmd functions.

I don't want to use 1 command for the functions. Just want to return them to another cmd.

Help me if you have understanded.

I am using dcmd.


Re: Back In trouble!! - doreto - 15.01.2014

pawn Код:
CMD:cmd1(playerid,params[])
{
    // cmd1 code
    return cmd_cmd2(playerid, params); // when cmd1 finish execution it will go to cmd2 (make sure you have that command)
}
Is this what you are looking for ?


Re: Back In trouble!! - Excelize - 15.01.2014

I don't think DCMD supports returning.
I recommend using ZCMD, a LOT faster!

EDIT: Nevermind, he already solved it while I was typing :P^