No respawn after explotion! - 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: No respawn after explotion! (
/showthread.php?tid=92964)
No respawn after explotion! -
Zafire1410 - 22.08.2009
i want if any car explode no respawn, i use createvehicle
Re: No respawn after explotion! -
dice7 - 22.08.2009
How much did you set the respawn delay in CreateVehicle ?
Re: No respawn after explotion! -
Zafire1410 - 22.08.2009
the respawn time is 9999999999999999999999999 :S i dont know put it infinity i need that no respawn
Re: No respawn after explotion! -
dice7 - 22.08.2009
I don't understand you. If you want your cars not to respawn, then use
https://sampwiki.blast.hk/wiki/AddStaticVehicle .
If you want them to respawn after explosion, lower the last parameter of CreateVahicle
Re: No respawn after explotion! -
Zafire1410 - 22.08.2009
Quote:
Originally Posted by dice7
|
I use createvehicle! because i need create cars but no in ongamemodeinit, the problem is my car (createvehicle) respawns inmediatly when the car explosion, i want the car NO respawn after explosion
Re: No respawn after explotion! -
ronyx69 - 22.08.2009
Код:
OnVehicleDeath(vehicleid, killerid)
{
DestroyVehicle(vehicleid)
}
This will destroy the vehicle when it explodes, so it won't respawn, but just won't exist. But if you want the exploded car to remain there - it's not possible.
BTW: The infinity for respawn delay is -1
Re: No respawn after explotion! -
Zafire1410 - 22.08.2009
That is the problem the car explodes but i use that code the cvehicle is destroy dont exist :S, i cant make the car respawn and teleport the car tooo anyy very lost place
Re: No respawn after explotion! -
ronyx69 - 22.08.2009
I don't understand what you want to do. Then you say that you need the vehicle to not respawn after explosion. And now you are saying something ... i don't know what... looks like you now want the car to respawn.
Re: No respawn after explotion! -
Zafire1410 - 22.08.2009
Quote:
Originally Posted by Ronyx69
I don't understand what you want to do. Then you say that you need the vehicle to not respawn after explosion. And now you are saying something ... i don't know what... looks like you now want the car to respawn.
|
I need this... the car (carro1 = createvehicle(blabnlabla..)) no respawn after explosion that is but dont destroy the car (destroyvehicle) because i need the same car respawn when i use (setvehicletorespawn(carro1))
Re: No respawn after explotion! -
MB@ - 22.08.2009
Dont undrestand a word