Raised This Month: $ Target: $400
 0% 

Remove map specific ent


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
bwgrubbs1
Senior Member
Join Date: Sep 2006
Old 05-04-2007 , 03:15   Remove map specific ent
Reply With Quote #1

I am trying to remove one entity in particular in on particular map...

whats my problem ?

Code:
#include <amxmodx> #include <fakemeta> new curmap[32] curmap[] = get_mapname(curmap, 31) //problem on this line public plugin_init() {     register_plugin("Ent Remover", "1.1", "CSL")     register_event("REMOVE", "event_remove", "a", "1=0", "2=0") } public event_remove() {     remove_entity_by_classname("func_breakable")     remove_entity_by_classname("func_door_rotating")     remove_entity_by_classname("func_door") } stock remove_entity_by_classname(const classname[]) {     new ent = -1     while((ent = engfunc(EngFunc_FindEntityByString, ent, "classname", classname)))     {         if(curmap[] = "de_aztec2") //problem on this line as well         {             if(pev(ent, pev_model) == 105) //SPECIFIC MODEL             {                 engfunc(EngFunc_RemoveEntity, ent)             }         }         else if(pev(ent, pev_spawnflags) != 1)         {             engfunc(EngFunc_RemoveEntity, ent)         }     } }

I am trying to remove a specific model on a specific map. In this case model # 105 on map de_aztec2. The only problem is that its labeled as a wall...i want to remove just this one...not all the walls. LOL help would be +karma'd
bwgrubbs1 is offline
 



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 06:43.


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