-
Scripting Help
(
https://forums.alliedmods.net/forumdisplay.php?f=11)
- -
Help
(
https://forums.alliedmods.net/showthread.php?t=228570)
Help
how to create here a ?
PHP Code:
#include <amxmodx> #include <hamsandwich>
const DMG_NADE = (1<<24)
public plugin_init() { register_plugin( "No Self-Nade + Damage", "1.1", "Wrecked" ) RegisterHam( Ham_TakeDamage, "player", "HamTakeDamagePre", 0 ) }
public HamTakeDamagePre( vic, inf, att, Float:dmg, dmgbits ) { if( dmgbits & DMG_NADE ) { if( vic == att ) return HAM_SUPERCEDE; new Float:newdmg = dmg * 2 // use this variable to change the dmg SetHamParamFloat( 4, newdmg ) } return HAM_IGNORED; }
|
| ConnorMcLeod |
10-22-2013 16:31 |
Re: Help
|
| All times are GMT -4. The time now is 23:18. |
|
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.