SA-MP Forums Archive
New Vehicle System - 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: New Vehicle System (/showthread.php?tid=545256)



Freeroam Vehicle System problem - ItzRbj - 07.11.2014

i've been searching for a good vehicle system for my Freeroam server for a while , didnt find any , also i tried Filterscript: fsdebug installed with SA-MP file , it's good but the problem is that 1 player can spawn infinite number of cars which always crash the server , also RC Vehicles r not driveable , can anyone help me with a vehicle system ? , it'll be even more awesome if it was a tutorial so i can understand more how they work , thx


Re: New Vehicle System - semara123 - 08.11.2014

hmm you should use mselection include i hope this can help you i'll give you the link for the example https://sampforum.blast.hk/showthread.php?tid=482021

or you can also use this code
CMD:hydra (playerid) // this is zcmd include find it on ******
{
DestroyVehicle(playerid); // destroy player vehicle to prevent infinity car spawn
// Add a Hydra to the game with a respawn time of 60 seconds got this from wiki ;p
CreateVehicle(520, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1, 60);
}
return1;
}