Quote:
Originally Posted by little_froy
it's not safe, you didn't check is the return value GetPlayerWeaponSlot(client, 1)valid and is a chainsaw.
|
If StrEqual(classname, "weapon_chainsaw") returns that the firing weapon is a chainsaw, then GetPlayerWeaponSlot(client, 1) returns a valid value. I have never received an error message with this code.