SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 19/08/2019, 01:13 PM   #21
ShadowMortar
Big Clucker
 
ShadowMortar's Avatar
 
Join Date: Jul 2016
Location: Croatia
Posts: 87
Reputation: 10
Default Re: Problem OnVehicleDeath water

Quote:
Originally Posted by Libbyphay View Post
Why I can't save all information of vehicle in OnVehicleDeath, I want last pos = current pos.
Code:
public OnVehicleDeath( vehicleid, killerid ){
	if( vehicleid != INVALID_VEHICLE_ID ){
		new Float:Pos[ 3 ], slot[ 14 ];
		for( new i = 0; i < 14; i++ ){
			GetVehicleComponentInSlot( vehicleid, slot[ i ] );
			AddVehicleComponent( vehicleid, slot[ i ] );
		}
		GetVehiclePos( vehicleid, Pos[ 0 ], Pos[ 1 ], Pos[ 2 ] );
		SetVehiclePos( vehicleid, Pos[ 0 ], Pos[ 1 ], Pos[ 2 ] );
		SetVehicleHealth( vehicleid, 1000.0 );
	}
	return 1;
}
Should be something like this.
I didn't test this above.
ShadowMortar is offline   Reply With Quote
Old 19/08/2019, 02:31 PM   #22
SiaReyes
Huge Clucker
 
SiaReyes's Avatar
 
Join Date: Mar 2019
Location: Coordinates X,Y,Z
Posts: 299
Reputation: 20
Default Re: Problem OnVehicleDeath water

Quote:
Originally Posted by Libbyphay View Post
Ok the vehicle when fall in water, called OnVehicleDeath > SetVehicleToRespawn. I want it can't call SetVehicleToRepsawn, and the vehicle save pos in water.
Why should the vehicle be respawned in water itself with it's information like fuel etc.?
__________________
Hey guys,
We've just started up our own hosting company and we are offering cheap game hosting. Our SAMP servers start at only $0.50 cents for 32 slots per month, or $1.50 for 64. We have ONE FREE spot left for a first month free subscription for any game host of your choice. We host most many major games such as SAMP, Call of Duty, 7 Days to Die, Minecraft, CounterStrike, ARK: Survival Evolved, and many more!

Cheapest hosting company official site : http://main-hosts.com/

Cheap Hosting Company is looking for an experience staff.

Sign up to our forums and Control Panel and order one of our cheap game servers. First to sign up will receive a free SA:MP server! Join on discord https://discord.gg/J82JgQJ for more information!

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 20/08/2019, 02:46 AM   #23
Mobtiesgangsa
Big Clucker
 
Join Date: Oct 2016
Posts: 129
Reputation: 16
Default Re: Problem OnVehicleDeath water

Hmmm. You guys are getting trolled and you still reply to him even he can't explain him self.
Mobtiesgangsa is offline   Reply With Quote
Old 20/08/2019, 06:47 AM   #24
SiaReyes
Huge Clucker
 
SiaReyes's Avatar
 
Join Date: Mar 2019
Location: Coordinates X,Y,Z
Posts: 299
Reputation: 20
Default Re: Problem OnVehicleDeath water

Quote:
Originally Posted by Mobtiesgangsa View Post
Hmmm. You guys are getting trolled and you still reply to him even he can't explain him self.
Actually, he made 2 threads based on this issue but he never said exactly what he wants and that's why no one replied!
__________________
Hey guys,
We've just started up our own hosting company and we are offering cheap game hosting. Our SAMP servers start at only $0.50 cents for 32 slots per month, or $1.50 for 64. We have ONE FREE spot left for a first month free subscription for any game host of your choice. We host most many major games such as SAMP, Call of Duty, 7 Days to Die, Minecraft, CounterStrike, ARK: Survival Evolved, and many more!

Cheapest hosting company official site : http://main-hosts.com/

Cheap Hosting Company is looking for an experience staff.

Sign up to our forums and Control Panel and order one of our cheap game servers. First to sign up will receive a free SA:MP server! Join on discord https://discord.gg/J82JgQJ for more information!

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
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 03:44 PM.


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