PHP Code:
if (!killer || !victim) // ! in front of id ?
PHP Code:
if (killer == 0 || victim == 0)
---
means if a is not equal to b or a isn't equal to c
if i understand you... yes..
-------------
public PUBLIC_NAME(weaponId)
if(weaponId == CSW_KNIFE)
{
do...
}
this is a public function with the param weapoinId
and the second you obten the weaponid;
example
PHP Code:
new weapon = get_user_weapon(id);
if(weapon == CSW_KNIFE)
{
do...
}
// or i can do this...
new weapon = get_user_weapon(id);
my_function(weapon)
}
public my_function(WeaponId)
{
if(WeaponId == CSW_KNIFE)
{
do...
}
}
__________________