Command Help.
#1

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?
Reply
#2

There is actually an animation that describes exactly what you want, you just gotta find it and apply it to the person. Good luck.
Reply
#3

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.
Reply
#4

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?
Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)