function OnPlayerKey(player, key) if (not player or not player:IsValid() or not player:IsAlive()) then return end; if (key == IN_ATTACK2) then local ent = ents.FindByClass("tf_pumpkin_bomb"); if (IsValid(ent)) then PrintTable(ent:DumpProperties()); end end end function OnPlayerConnected(player) if (player:IsRealPlayer()) then player:AddCallback(ON_KEY_PRESSED, OnPlayerKey); end end