SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 19/08/2019, 05:32 AM   #1
Libbyphay
Big Clucker
 
Join Date: May 2017
Posts: 190
Reputation: 0
Default Problem OnVehicleDeath water

Why vehicle in water is call OnVehicleDeath?
Libbyphay is offline   Reply With Quote
Old 19/08/2019, 05:39 AM   #2
SiaReyes
Huge Clucker
 
SiaReyes's Avatar
 
Join Date: Mar 2019
Location: Coordinates X,Y,Z
Posts: 307
Reputation: 22
Default Re: Problem OnVehicleDeath water

OnVehicleDeath is called when a vehicle enters water.
__________________
I will be back soon.

Quote:
Originally Posted by Toroi View Post
blackmail people that join your server using their ip address as hostage

or get a job and play sa-mp for fun
SiaReyes is offline   Reply With Quote
Old 19/08/2019, 05:48 AM   #3
Libbyphay
Big Clucker
 
Join Date: May 2017
Posts: 190
Reputation: 0
Default Re: Problem OnVehicleDeath water

Quote:
Originally Posted by SiaReyes View Post
OnVehicleDeath is called when a vehicle enters water.
How I can vehicle no Respawn to last pos, when it call OnVehicleDealth.
Libbyphay is offline   Reply With Quote
Old 19/08/2019, 05:56 AM   #4
SiaReyes
Huge Clucker
 
SiaReyes's Avatar
 
Join Date: Mar 2019
Location: Coordinates X,Y,Z
Posts: 307
Reputation: 22
Default Re: Problem OnVehicleDeath water

respawn_delay to -1, in CreateVehicle , so that it will prevent vehicle from respawn after death.
__________________
I will be back soon.

Quote:
Originally Posted by Toroi View Post
blackmail people that join your server using their ip address as hostage

or get a job and play sa-mp for fun
SiaReyes is offline   Reply With Quote
Old 19/08/2019, 06:15 AM   #5
Libbyphay
Big Clucker
 
Join Date: May 2017
Posts: 190
Reputation: 0
Default Re: Problem OnVehicleDeath water

Quote:
Originally Posted by SiaReyes View Post
respawn_delay to -1, in CreateVehicle , so that it will prevent vehicle from respawn after death.
PHP Code:
new iVeh CreateVehicle(VehicleInfo[playerid][VehicleSelect[playerid]][vehModel], VehicleInfo[playerid][VehicleSelect[playerid]][vehX], VehicleInfo[playerid][VehicleSelect[playerid]][vehY], VehicleInfo[playerid][VehicleSelect[playerid]][vehZ], VehicleInfo[playerid][VehicleSelect[playerid]][vehA],VehicleInfo[playerid][VehicleSelect[playerid]][vehColor1], VehicleInfo[playerid][VehicleSelect[playerid]][vehColor2], -1); 
Yeah, I have but not works.
Libbyphay is offline   Reply With Quote
Old 19/08/2019, 06:45 AM   #6
Plastikmensch
Huge Clucker
 
Join Date: Aug 2016
Posts: 275
Reputation: 22
Default Re: Problem OnVehicleDeath water

For some reason setting respawn_delay to -1 doesn't prevent vehicles from respawning when destroyed.
Workaround is to use DestroyVehicle in OnVehicleSpawn.
Plastikmensch is offline   Reply With Quote
Old 19/08/2019, 06:48 AM   #7
Libbyphay
Big Clucker
 
Join Date: May 2017
Posts: 190
Reputation: 0
Default Re: Problem OnVehicleDeath water

Quote:
Originally Posted by Plastikmensch View Post
For some reason setting respawn_delay to -1 doesn't prevent vehicles from respawning when destroyed.
Workaround is to use DestroyVehicle in OnVehicleSpawn.
I want vehicle no destroy when in water.
Libbyphay is offline   Reply With Quote
Old 19/08/2019, 06:58 AM   #8
Plastikmensch
Huge Clucker
 
Join Date: Aug 2016
Posts: 275
Reputation: 22
Default Re: Problem OnVehicleDeath water

That's not possible.
Plastikmensch is offline   Reply With Quote
Old 19/08/2019, 07:01 AM   #9
Libbyphay
Big Clucker
 
Join Date: May 2017
Posts: 190
Reputation: 0
Default Re: Problem OnVehicleDeath water

Quote:
Originally Posted by Plastikmensch View Post
That's not possible.
So I can Spawn again in water?
Libbyphay is offline   Reply With Quote
Old 19/08/2019, 07:08 AM   #10
Plastikmensch
Huge Clucker
 
Join Date: Aug 2016
Posts: 275
Reputation: 22
Default Re: Problem OnVehicleDeath water

...what?
What are you trying to do?
Plastikmensch is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OnVehicleDeath water bug jamesbond007 Bug Reports 1 10/02/2012 10:28 PM
onvehicledeath water jamesbond007 Scripting Help 7 03/02/2012 02:00 AM
OnVehicleDeath() isn't called when vehicle enters water Awesome™ Scripting Help 5 20/01/2012 02:41 AM
OnVehicleDeath Problem.. MrIncredible Help Archive 6 08/02/2011 10:35 PM
OnVehicleDeath Problem Jakku Help Archive 10 08/11/2009 08:16 AM


All times are GMT. The time now is 12:45 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.