SA-MP Forums Archive
Vehicle Spawning Double? - 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: Vehicle Spawning Double? (/showthread.php?tid=97084)



Vehicle Spawning Double? - dayav07 - 12.09.2009

I have 6 cars in fort carson.. When i connect to the game, i end up having 12? can someone help? here is the code:

Код:
public OnGameModeInit()
{
	SetGameModeText("Fort Carson DM");
	AddPlayerClass(0,172.2445,1220.8604,19.5938,181.1826,0,0,0,0,0,0); // cafe
	AddStaticVehicleEx(419,-177.1931,1225.3440,19.5396,269.8269,47,76,5); // esperanto
	AddStaticVehicleEx(421,-177.3980,1213.8656,19.6229,271.0451,13,1,5); // washington
	AddStaticVehicleEx(421,-150.3455,1177.4398,19.6285,179.8990,13,1,5); // washington2
	AddStaticVehicleEx(426,-141.5858,1177.1309,19.4891,180.8839,42,42,5); // premier
	AddStaticVehicleEx(426,-194.5683,1223.2703,19.4853,358.5677,42,42,5); // premier2
	AddStaticVehicleEx(434,-199.4140,1223.0217,19.7088,359.4897,12,12,5); // hotknife

	return 1;

}



Re: Vehicle Spawning Double? - Joe Staff - 12.09.2009

Sounds like an issue with a vehicle streamer you're using. Use CreateVehicle instead of AddStaticVehicleEx