Raised This Month: $ Target: $400
 0% 

Deletting entity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 12-30-2009 , 19:44   Deletting entity
Reply With Quote #1

How to delete the entitie?
PHP Code:
        new package create_entity("cycler_sprite")
        
entity_set_string(packageEV_SZ_classname,"Package")
        
entity_set_model(packagePACKAGEMODEL)
        
entity_set_origin(packageoriginp)
        
DispatchSpawn(package
Because i have 3 "cycler_sprite" if i put remove_entitie_name("cycler_sprite") all dissapear..
I have to put remove_entitie_name("Pacakge") ?

Last edited by Mxnn; 12-30-2009 at 19:47.
Mxnn is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-30-2009 , 19:54   Re: Deletting entitie
Reply With Quote #2

Try : remove_entity( find_ent_by_class( -1, "Pacakge" ) );
__________________
Arkshine is offline
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 12-30-2009 , 20:38   Re: Deletting entitie
Reply With Quote #3

Thx!
Mxnn 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 04:10.


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