Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: sseebbyy on March 11, 2012, 12:26:51 pm

Title: OnVehicleRespawn & OnPlayerDecreaseHealth
Post by: sseebbyy on March 11, 2012, 12:26:51 pm
Give me a idea how to do in pawn a public named "OnVehicleRespawn"  :-\

This need to detect when the vehicle is respawned.


And.... Give me a idea (again) how to do in pawn a public named "OnplayerDecreaseHealth" :-\

This need to detect when the hp of a player decreasing.

Title: Re: OnVehicleRespawn & OnPlayerDecreaseHealth
Post by: YoMan on March 12, 2012, 06:29:21 am
I think No its only is sql
Title: Re: OnVehicleRespawn & OnPlayerDecreaseHealth
Post by: heekz.shadow on March 12, 2012, 08:05:32 am
SQL does not mean squirrel.


"SQL is a standard language for accessing and manipulating databases.
What is SQL?

"


source here (http://www.w3schools.com/sql/sql_intro.asp)

Back to the topic, check this out http://thijn.vrocker-hosting.co.uk/VCWiki/index.php/Callbacks (http://thijn.vrocker-hosting.co.uk/VCWiki/index.php/Callbacks)

Title: Re: OnVehicleRespawn & OnPlayerDecreaseHealth
Post by: sseebbyy on March 12, 2012, 04:09:31 pm
Back to the topic, check this out http://thijn.vrocker-hosting.co.uk/VCWiki/index.php/Callbacks (http://thijn.vrocker-hosting.co.uk/VCWiki/index.php/Callbacks)

Man... I know about this ! If I saw "OnVehicleRespawn" & "OnPlayerDecreaseHealth" in Callbacks list I have not opened this topic.  ::)

What you understand from this mr. Shadow ? ???

Give me a idea how to do in pawn a public named "OnVehicleRespawn"  :-\

This need to detect when the vehicle is respawned.


And.... Give me a idea (again) how to do in pawn a public named "OnplayerDecreaseHealth" :-\

This need to detect when the hp of a player decreasing.


Title: Re: OnVehicleRespawn & OnPlayerDecreaseHealth
Post by: sseebbyy on March 16, 2012, 02:43:29 pm
anybody ?
Title: Re: OnVehicleRespawn & OnPlayerDecreaseHealth
Post by: [AoD]NC on March 24, 2012, 12:48:50 am
What about setting the car on fire, this will force to respawn it (with a desync?). Good old R1 method :].

About decrase health. There is no "health changed" event in pawn?

o/o
o/o
o/o
o/o
o/o
o/o

End of shock.

So you will have to make a 1-2 second timer, that will save every players health and compare it again after 1-2 second.