Command Help. - 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: Command Help. (
/showthread.php?tid=433750)
Command Help. -
SilencedPistol - 28.04.2013
I would like to know how I would go about using a command on somebody to do something.
I need /push - so that when I type /push [playerid] it knocks the person back several feet from their current position and sets them into a /fall animation of being on their back on the floor.
Can I get some help?
Re: Command Help. -
BigGroter - 28.04.2013
There is actually an animation that describes exactly what you want, you just gotta find it and apply it to the person. Good luck.
Re: Command Help. -
Chenko - 28.04.2013
If you want to make commands that take parameters such as playerid then the easiest and fastest way is with the sscanf plugin. Which you can find here:
https://sampforum.blast.hk/showthread.php?tid=120356
Make sure to read everything so you understand how it works.
Re: Command Help. -
SilencedPistol - 28.04.2013
I have sscanf. I'm wondering, how do I make a command that I can use on somebody so that I can make them fly back and shit?
Re: Command Help. -
BigGroter - 28.04.2013
pawn Код:
CMD:push(playerid, params[])
{
new Player;
if(sscanf(params, "u", Player)) return SendClientMessage(playerid, -1, "Usage: /push <playerid>");
ApplyAnimation(Player, );
return 1;
}
Find the animation.