Auto Car respawning.. - 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)
+--- Thread: Auto Car respawning.. (
/showthread.php?tid=548001)
Auto Car respawning.. -
Th3UnKnOwN - 26.11.2014
What's up guys. How would I setup a timer for 5 minutes upon leaving your vehicle so you have 5 minutes to before your car respawns. So that I don't have to reset the server.
I haven't done any scripting on it yet. So if someone could show me a tutorial on it or make a tutorial right here. That would be great!
Thanks
- Th3UnKnOwN
Re: Auto Car respawning.. -
MD5 - 26.11.2014
Change your vehicles to:
Example
Код:
AddStaticVehicleEx(599,2779.3843,-2434.2644,13.3568,88.5203, 86, 86, 900); // The 900 is the respawn timer (900 is milliseconds, just ****** the *5minutes to milliseconds*.)
Re: Auto Car respawning.. -
Th3UnKnOwN - 27.11.2014
So... AddStaticVehicleEx(vehicleid, x, y, z, facing angle, color1, color2, respawn time);
Re: Auto Car respawning.. -
MD5 - 27.11.2014
Quote:
Originally Posted by Th3UnKnOwN
So... AddStaticVehicleEx(vehicleid, x, y, z, facing angle, color1, color2, respawn time);
|
You're exactly right
Re: Auto Car respawning.. -
Th3UnKnOwN - 27.11.2014
Quote:
Originally Posted by MD5
You're exactly right
|
Awesome, Thanks for the help!