Vehicle Respawn
#1

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

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);
Reply
#3

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?
Reply
#4

There is respawn_delay parameter in CreateVehicle and AddStaticVehicleEx.

You have to use one of these instead of AddStaticVehicle.
Reply
#5

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

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

https://sampwiki.blast.hk/wiki/CreateVehicle
Reply
#7

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


Forum Jump:


Users browsing this thread: 1 Guest(s)