View Single Post
BloodyBlade
Senior Member
Join Date: Feb 2018
Old 03-31-2024 , 03:45   Re: [L4D2] Unlimited Chainsaw
Reply With Quote #6

Quote:
Originally Posted by little_froy View Post
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.
BloodyBlade is offline