SA-MP Forums Archive
[HELP] How would I do it? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] How would I do it? (/showthread.php?tid=191672)



[HELP] How would I do it? - blackwave - 20.11.2010

I make a vehicle, like: createvehicle(model, x, y, z, color1, color2); sure?

And how would I do for, if a player gets in the car, and move it from vehicle's original position (X,Y,Z), it creates another vehicle(not respawn), same position, model, color1, color2, x, y, z?

[ty]
___________ good night


Re: [HELP] How would I do it? - ChristopherM - 20.11.2010

pawn Код:
new PVehicle = CreateVehicle(Model, X, Y, Z, Colour1, Colour2);

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(vehicleid == PVehicle) CreateVehice(Model, X, Y, Z, Colour1, Colour2);
}