Raised This Month: $ Target: $400
 0% 

Unbreakable ENTs


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ryu2877
Member
Join Date: Sep 2006
Location: China
Old 02-01-2007 , 00:51   Re: Unbreakable ENTs
Reply With Quote #1

if you confirm this estate is made by plugin, well then, the underside maybe can help you:
Code:
#include <amxmodx>
#include <fakemeta>
#define PLUGIN_NAME "resetenthealth"
#define PLUGIN_VERSION "0.1"
#define PLUGIN_AUTHOR "CZ*Ryu"
#define MAXPLAYERS 32
new const sClassname[] = "classname"
new const sFuncBreakable[] = "func_breakable"
new const sFuncPushable[] = "func_pushable"
public plugin_init()
{
 register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
 
 set_task(2.0, "task_reset_EntHealth")
}
public task_reset_EntHealth()
{
 new ent = -1
 while ( (ent = engfunc(EngFunc_FindEntityByString, ent, sClassname, sFuncBreakable)) > MAXPLAYERS )
 {
  set_pev(ent, pev_takedamage, DAMAGE_YES)
  set_pev(ent, pev_health, 1.0)
 }
 ent = -1
 while ( (ent = engfunc(EngFunc_FindEntityByString, ent, sClassname, sFuncPushable)) > MAXPLAYERS )
 {
  set_pev(ent, pev_takedamage, DAMAGE_YES)
  set_pev(ent, pev_health, 1.0)
 }
}

Last edited by Ryu2877; 02-01-2007 at 00:56.
Ryu2877 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:45.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode