Available block doors

Unpaid Requests, Public Plugins
Post Reply
User avatar
sPe3doN
Senior Member
Senior Member
Algeria
Posts: 258
Joined: 7 years ago
Contact:

block doors

#1

Post by sPe3doN » 5 years ago

can some one made plugin block doors from killing players
Image
Image
Image

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#2

Post by Raheem » 5 years ago

  1. #include <zombie_escape>
  2.  
  3. public plugin_init ()
  4. {
  5.     register_plugin("No Doors Damage", "1.0", "Raheem")
  6.    
  7.     RegisterHam(Ham_TakeDamage, "player", "Fw_TakeDamage_Pre", 0)
  8. }
  9.  
  10. public Fw_TakeDamage_Pre(iVictim, iInflictor, iAttacker, Float:flDamage, bitsDamage)
  11. {
  12.     new szClassname[32]
  13.     get_entvar(iAttacker, EntVars:var_classname, szClassname, charsmax(szClassname))
  14.    
  15.     if (equal(szClassname, "func_door"))
  16.         return HAM_SUPERCEDE
  17.    
  18.     return HAM_IGNORED
  19. }
He who fails to plan is planning to fail

Post Reply

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

Register

Sign in

Who is online

Users browsing this forum: No registered users and 3 guests