SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 02/10/2016, 02:28 PM   #1
Ahmed21
Big Clucker
 
Join Date: Jul 2016
Posts: 158
Reputation: 3
Default OnPlayerGiveDamage

Hello, so, as I know, OnPlayerGiveDamage is called when "player X" hits another "player Y" in his computer, regardless if player Y was damaged or not.

So my question is, how to check if player Y lost HP when OnPlayerGiveDamage was called, and if he wasn't damaged, take "damage" from his health..

Help please!
Ahmed21 is offline   Reply With Quote
Old 02/10/2016, 02:41 PM   #2
Gotham
Huge Clucker
 
Gotham's Avatar
 
Join Date: Aug 2016
Location: India
Posts: 214
Reputation: 6
Default Re: OnPlayerGiveDamage

U r not sensible!They won't take damage in their computer neither do you see the health bar going down!
Gotham is offline   Reply With Quote
Old 07/10/2016, 06:23 AM   #3
Ahmed21
Big Clucker
 
Join Date: Jul 2016
Posts: 158
Reputation: 3
Default Re: OnPlayerGiveDamage

I mean: "check if "damagedid" was damaged when OnPlayerGiveDamage was called", because sometimes when you're running, I hit you with my fist, OnPlayerGiveDamage is called because I did hit you but you didn't lose health because in your computer I didn't hit you.
Ahmed21 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
OnPlayerGiveDamage audriuxxx Scripting Help 2 10/05/2014 08:31 AM
[Help]OnPlayerGiveDamage. Galletziz Scripting Help 3 30/04/2014 08:16 PM
OnPlayerGiveDamage or 0.3z? Kyra Scripting Help 2 12/02/2014 11:42 PM
OnPlayerGiveDamage gtascripterultimate Scripting Help 4 19/01/2014 02:20 PM
OnPlayerGiveDamage help. PaulDinam Scripting Help 2 22/02/2013 11:00 AM


All times are GMT. The time now is 08:55 PM.


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