How to create Custom Damage Molotov Cocktail - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to create Custom Damage Molotov Cocktail (
/showthread.php?tid=543046)
How to create Custom Damage Molotov Cocktail -
ScorpiusMalfoy - 24.10.2014
Like a title, i wanted to custom damage of Molotov or custom fire time of molotov.
Re: How to create Custom Damage Molotov Cocktail -
ScorpiusMalfoy - 24.10.2014
canbe using onplayergivedame or onplayertakedame ?
Re: How to create Custom Damage Molotov Cocktail -
Laurey - 24.10.2014
Wrong section, Post it in the script request thread mate.
OnPlayerTakeDamage and create the case if the weapon id is molotov cocktail then apply the damage amount.
PS: Also can be done in OnPlayerGiveDamage.
Re: How to create Custom Damage Molotov Cocktail -
NeGaTiveZ - 25.10.2014
Use onplayertakedamage and select the weapon that you want to set damage if you need more information regarding in onplayertakedamage goto samp wiki
Re: How to create Custom Damage Molotov Cocktail -
Rudy_ - 25.10.2014
Flamethrower is not detectable i think, But fire is
" The weaponid will return 37 (flame thrower) from any fire sources (e.g. molotov, 1

"
On both onplayergivedamage and takedamage