Quote:
Originally Posted by ConnorMcLeod
PHP Code:
if( equal( szWeapon , "weapon_smokegrenade" ) || equal( szWeapon , "weapon_flashbang" ) || equal( szWeapon , "weapon_hegrenade" ) , equal( szWeapon , "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.
|
Ok, fixed. I have checked with weaponid.
Quote:
Originally Posted by Arkshine
He says just the check if victim is a player or not is pointless since your register the forward with "player" and the victim can be only a player anyway.
|
I didn't understand that, sorry.