SA-MP Forums Archive
Vehicle Respawn - 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 Respawn (/showthread.php?tid=244453)



Vehicle Respawn - Compton - 27.03.2011

Hello, I have a question about vehicle respawning. On My server the vehicles are respawning really fast and the players are complaining about it, is there some way to delete this respawn thing or atleast make the time of the respawn longer?

-thank You.


Re: Vehicle Respawn - DRIFT_HUNTER - 27.03.2011

pawn Code:
CreateVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay);

AddStaticVehicle(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2);

AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2, respawn_delay);



Re: Vehicle Respawn - Compton - 27.03.2011

umm can I ask what do I need to add in the CreateVehicle? Cause I only have the AddStaticVehicle thing, and do I have to add these lines to each car I made?


Re: Vehicle Respawn - MadeMan - 27.03.2011

There is respawn_delay parameter in CreateVehicle and AddStaticVehicleEx.

You have to use one of these instead of AddStaticVehicle.


Re: Vehicle Respawn - Compton - 27.03.2011

Ok thank you, and could someone explain me how the respawn_delay works, I mean how to type in the number of it, and if its in minutes/seconds or whatever.


Re: Vehicle Respawn - MadeMan - 27.03.2011

https://sampwiki.blast.hk/wiki/AddStaticVehicleEx

https://sampwiki.blast.hk/wiki/CreateVehicle


Re: Vehicle Respawn - Compton - 27.03.2011

Ok thank you guys, yall helped me alot. I Fixed the problem and all works good now