can some one made plugin block doors from killing players
block doors
- #include <zombie_escape>
- public plugin_init ()
- {
- register_plugin("No Doors Damage", "1.0", "Raheem")
- RegisterHam(Ham_TakeDamage, "player", "Fw_TakeDamage_Pre", 0)
- }
- public Fw_TakeDamage_Pre(iVictim, iInflictor, iAttacker, Float:flDamage, bitsDamage)
- {
- new szClassname[32]
- get_entvar(iAttacker, EntVars:var_classname, szClassname, charsmax(szClassname))
- if (equal(szClassname, "func_door"))
- return HAM_SUPERCEDE
- return HAM_IGNORED
- }
He who fails to plan is planning to fail
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute
Sign in
Who is online
Users browsing this forum: No registered users and 1 guest