SA-MP Forums Archive
Help: How to make a /jackcar - 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: Help: How to make a /jackcar (/showthread.php?tid=411056)



Help: How to make a /jackcar - jakejohnsonusa - 27.01.2013

Ok so I want to make a /jackcar command for the Car Jacker job in my GM. But I'm not sure how to begin.

I want it to be realistic and force the driver of a nearby car (say 15 as a radius) out and the playerid that does the command to be put in the car. However I want it to be realistic and also play the animations. How can I do this?

Please don't say just press F next to the car, as there will be other things that I add to this...

Thanks in advance!


What I have so far (just the beggining):
pawn Код:
if (strcmp(cmd, "/jackcar", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(!IsPlayerInAnyVehicle(playerid))
            {