View Single Post
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-01-2011 , 05:12   Re: Mortal Headshot v0.0.1
Reply With Quote #6

PHP Code:
        if( equalszWeapon "weapon_smokegrenade" ) || equalszWeapon "weapon_flashbang" ) || equalszWeapon "weapon_hegrenade" ) , equalszWeapon "weapon_c4" ) )
        {
            return 
PLUGIN_HANDLED
        

This is useless, if you really want to check, then check weaponid it is faster.
No check result in the array to be filled, it's not really a problem.


For victim check, you register the ham forward with classname "player", so victim can't be any other entity than a player, that's why the check is useless.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline