SA-MP Forums Archive
How to add Muiltp. Cars on a Script. - 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: How to add Muiltp. Cars on a Script. (/showthread.php?tid=148593)



How to add Muiltp. Cars on a Script. - Badandy - 18.05.2010

I use this
Код:
public OnVehicleSpawn(vehicleid)
	AddStaticVehicle(523,-1607.5027,732.4973,-5.6715,263.9064,0,0); // SFPD Motor
	AddStaticVehicle(523,-1607.3356,730.5137,-5.6860,269.3144,0,0); // SFPD Motor
	AddStaticVehicle(597,-1606.5939,673.6274,6.9557,178.6848,0,1); // SFPD Car
	AddStaticVehicle(597,-1600.2363,651.6506,6.9560,1.5314,0,1); // SFPD Car
	AddStaticVehicle(597,-1600.2363,651.6506,6.9560,1.5314,0,1); // SFPD Car
	AddStaticVehicle(597,-1604.7295,651.8078,6.9563,2.6099,0,1); // SFPD Car
	AddStaticVehicle(597,-1599.7600,672.8246,6.9564,181.6137,0,1); // SFPD Car
	AddStaticVehicle(597,-1593.8296,651.8841,6.9570,0.6253,0,1); // SFPD Car
	AddStaticVehicle(597,-1594.2769,672.9948,6.9553,180.5771,0,1); // SFPD Car
	AddStaticVehicle(597,-1587.2527,651.6034,6.9565,1.7816,0,1); // SFPD Car
	AddStaticVehicle(597,-1587.9595,673.3833,6.9565,180.8531,0,1); // SFPD Car



Re: How to add Muiltp. Cars on a Script. - Steven82 - 18.05.2010

Put those cars under


pawn Код:
OnGameModeInit...



Re: How to add Muiltp. Cars on a Script. - ViruZZzZ_ChiLLL - 18.05.2010

Okay, so you have that?? and??
Sorry I kinda don't get your subject title

and why don't you just put it under
pawn Код:
OnGameModeInit()
{
return 1;
}



Re: How to add Muiltp. Cars on a Script. - Badandy - 18.05.2010

I got a other error for the vehicle death


Re: How to add Muiltp. Cars on a Script. - ViruZZzZ_ChiLLL - 18.05.2010

Quote:
Originally Posted by Badandy
I got a other error for the vehicle death
Okay what error is it? and show us the code of the error
so we can help you


Re: How to add Muiltp. Cars on a Script. - Badandy - 18.05.2010

Nvm I fixed


Re: How to add Muiltp. Cars on a Script. - Steven82 - 18.05.2010

Becuz you actually read our post's huh


Re: How to add Muiltp. Cars on a Script. - Badandy - 18.05.2010

ya kinda and i accidently removed the return 1; on OnVehicleSpawn


Re: How to add Muiltp. Cars on a Script. - Steven82 - 18.05.2010

Well thata do is(: