Raised This Month: $ Target: $400
 0% 

Remove entity by model name?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 01-16-2007 , 14:18   Re: Remove entity by model name?
Reply With Quote #1

Try this native http://www.amxmodx.org/funcwiki.php?go=func&id=348

Edit.

Nevermind. This native you have to use with classname.
__________________
No private support via Instant Message
GunGame:SM Released

Last edited by teame06; 01-16-2007 at 14:25.
teame06 is offline
Send a message via AIM to teame06
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 01-16-2007 , 15:55   Re: Remove entity by model name?
Reply With Quote #2

I'm just guessing. I'm not very good with ents.
Code:
stock FindEntByModel(model[]) {         new ent_model[64]     new ent = get_maxplayers()     new max_ent = engfunc(EngFunc_NumberOfEntities)         while ( ent++ < max_ent ) {         pev(ent, pev_model, ent_model, 63)         if ( equal(model, ent_model) )             return ent     }     return 0; }
[ --<-@ ] Black Rose 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 22:26.


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