Vehicle who spawn anywhere - 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: Vehicle who spawn anywhere (
/showthread.php?tid=495341)
Vehicle who spawn anywhere -
SlayerS - 16.02.2014
Hi all !
My problem is simply. I want to create a house for one team so I added class in CJ's house (the interior is 3) and I do like this :
Код:
AddPlayerClassEx(1,105,2495.9885,-1708.1449,1014.7422,359.8317,0,0,0,0,0,0);
In OnPlayerRequestClass callback :
Код:
if (classid == 0)
{
SetPlayerInterior(playerid,3);
}
But now the problem is when I leave the CJ's house, the vehicle who I added spawn like these :
But I never add my vehicle like these... ! I don't understand... from where the problem can come ?
Thanks for your help !
Re: Vehicle who spawn anywhere -
Vanter - 16.02.2014
do /dl next to them then get the cPos, Car Coordinates and delete them.
Re: Vehicle who spawn anywhere -
SlayerS - 16.02.2014
Thanks for your response !
I did /dl then I have the cPos, car coordinates but how to delete them ?
Re: Vehicle who spawn anywhere -
Cvnnor - 16.02.2014
Press CTRL+F in your script and try and find the CreateVehicle line, the first number is the type in /dl so whatever line has the same first number set the co-ordinates to where you want to vehicle to be placed. I recommend making a /park command due to the fact it makes everything a lot easier, various tutorial can be found on the samp forums.