Vehicle who spawn anywhere
#1

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

do /dl next to them then get the cPos, Car Coordinates and delete them.
Reply
#3

Thanks for your response !

I did /dl then I have the cPos, car coordinates but how to delete them ?

Reply
#4

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


Forum Jump:


Users browsing this thread: