Raised This Month: $ Target: $400
 0% 

Removing ents with HAM


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 10-01-2009 , 08:02   Removing ents with HAM
Reply With Quote #1

Hi guys
I have another problem with ents -.-
Look the code:
PHP Code:
#include <amxmodx>
#include <engine>
#include <hamsandwich>

new const g_remove_entities[][] = 

    
"func_bomb_target",    
    
"info_bomb_target"
    
"hostage_entity",      
    
"monster_scientist"
    
"func_hostage_rescue"
    
"info_hostage_rescue",
    
"info_vip_start",      
    
"func_vip_safetyzone"
    
"func_escapezone",     
    
"func_buyzone"
}

public 
plugin_init() {
     for(new 
0;sizeof g_remove_entities;i++)
        
RegisterHam(Ham_Spawng_remove_entities[i], "fw_RemoveEnts")
}

public 
fw_RemoveEnts(ent)
{
    if(
is_valid_ent(ent))
        
remove_entity(ent)

The problem:
Do not remove the entities :S

Question:
What am I doing wrong?
__________________
alan_el_more is offline
 


Thread Tools
Display Modes

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 22:31.


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