SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 10/03/2018, 09:14 AM   #1
Milak
Little Clucker
 
Join Date: Oct 2017
Location: Poland, Gdansk
Posts: 15
Reputation: 0
Default OnPlayerTakeDamage, weaponid 54 issue

Hello, I have a problem with weaponid 54 called in OnPlayerTakeDamage callback. When player fell on the ground from a height then he dies. I want take damage from him, for example only 5 hp.
Milak is offline   Reply With Quote
Old 10/03/2018, 11:21 AM   #2
Josh_Main
Huge Clucker
 
Join Date: Mar 2012
Location: Main-Hosts.com
Posts: 447
Reputation: 12
Default Re: OnPlayerTakeDamage, weaponid 54 issue

Are you using GivePlayerWeapon? Or WEAPON_COLLISION? You cannot use GivePlayerWeapon
Josh_Main is offline   Reply With Quote
Old 10/03/2018, 11:50 AM   #3
Sew_Sumi
Banned
 
Join Date: Jun 2008
Location: Azerbaijan
Posts: 6,284
Reputation: 525
Default Re: OnPlayerTakeDamage, weaponid 54 issue

http://forum.sa-mp.com/showthread.php?t=615646 Has info directly relating to this instance.

http://forum.sa-mp.com/showthread.php?t=606430 Has info relating to all other aspects of stopping damage.
Sew_Sumi is offline   Reply With Quote
Old 10/03/2018, 01:07 PM   #4
Milak
Little Clucker
 
Join Date: Oct 2017
Location: Poland, Gdansk
Posts: 15
Reputation: 0
Default Re: OnPlayerTakeDamage, weaponid 54 issue

Thank you all for replies, I have idea to make player "god", I'll create textdraw to hide the real health bar and then player will has always 1000 hp or something.
Milak 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
OnPlayerTakeDamage issue arad55 Scripting Help 6 16/07/2017 11:05 PM
weaponid problem xiaoniao Scripting Help 4 14/01/2016 09:11 AM
weaponid Karolukas123 Scripting Help 1 10/09/2015 07:55 PM
OnPlayerTakeDamage reliability issue Zhao Scripting Help 4 24/01/2014 01:29 PM
[Ajuda] DanoArma(weaponid) BielCOP PortuguÍs/Portuguese 12 20/10/2013 03:59 AM


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


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