how to add more cars? - 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 more cars? (
/showthread.php?tid=79679)
how to add more cars? -
copper - 30.05.2009
hey , im editing a gamemode [LA-RP] and i want to increase the police cars or fire trucks but when i add more the server bugs. I can only use those they have. [example : there are 5 pd cars and when i add 2 more it bugs] .
Do you know if i need to change something or there is a limit pls?
thanks and sorry for bad english
Re: how to add more cars? -
Jakku - 30.05.2009
pawn Код:
AddStaticVehicle(Vehicle ID,X,Y,Z,COLOR1,COLOR2);
X Y and Z are the coordinates and you must get them to place a car / vehicle
Color1 and color2 are the colors of the vehicle, you must change them, example -1
Re: how to add more cars? -
Castle - 30.05.2009
the bug you are talking about is it that the cars IDS are mixed up? and some cars that are Fire become Ambulance etc?
Re: how to add more cars? -
copper - 30.05.2009
Quote:
Originally Posted by Castle
the bug you are talking about is it that the cars IDS are mixed up? and some cars that are Fire become Ambulance etc?
|
Yes exactly that one ;/ the ids gets mixed , what i need to do?
Re: how to add more cars? -
copper - 30.05.2009
Anyone knows pls what i need to do?
Re: how to add more cars? -
Fragoso - 30.05.2009
Just add in your GamoMode Script...
Search for OnGameModeInit
Then
AddStaticVehicle(playerid,ID,x,y,z,c1,c2);
Re: how to add more cars? -
copper - 30.05.2009
My problem is not how to add a normal car that it easy but how to add more faction cars without bugging the server (the id's gets mixed , you enter in a police car and it tells me stealing an ambulance.) because when i edited, i put more than how much there was.
i think i need to change something from the gamemode but i don't know. HELP :P