Author Topic: OnVehicleRespawn & OnPlayerDecreaseHealth  (Read 3397 times)

0 Members and 1 Guest are viewing this topic.

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
OnVehicleRespawn & OnPlayerDecreaseHealth
« 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.


Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.



Offline YoMan

  • Street Thug
  • *
  • Posts: 17
    • View Profile
Re: OnVehicleRespawn & OnPlayerDecreaseHealth
« Reply #1 on: March 12, 2012, 06:29:21 am »
I think No its only is sql

Offline heekz.shadow

  • LU testers
  • Made Man
  • *
  • Posts: 249
    • View Profile
Re: OnVehicleRespawn & OnPlayerDecreaseHealth
« Reply #2 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?

  •     SQL stands for Structured Query Language
  •     SQL lets you access and manipulate databases
  •     SQL is an ANSI (American National Standards Institute) standard
"


source here

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

Code: [Select]
[20:23] <habi> later only i heard that lu chatbox is customizable. On my first visit, it appeared ugly.
[20:23] <habi> May be that also be the reason why lu has no players

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
Re: OnVehicleRespawn & OnPlayerDecreaseHealth
« Reply #3 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

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.



Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.



Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
Re: OnVehicleRespawn & OnPlayerDecreaseHealth
« Reply #4 on: March 16, 2012, 02:43:29 pm »
anybody ?

Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.



Offline [AoD]NC

  • VC:MP Beta Tester
  • VC:MP Veteran
  • *
  • Posts: 616
  • AoD forever!
    • View Profile
    • KURWA MAĆ
Re: OnVehicleRespawn & OnPlayerDecreaseHealth
« Reply #5 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.