Raised This Month: $ Target: $400
 0% 

Properly remove entity at end of the round.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Y060N
BANNED
Join Date: Dec 2011
Location: www.equilibriumcs.com
Old 07-07-2012 , 12:05   Properly remove entity at end of the round.
Reply With Quote #1

I have a class that can create poison bombs and it has a task to remove the entity. When I try to remove this entity and it's task at the end of the round the server crashes.

My question is, how can I remove this entity safely if it is still there at the end of the round?

PHP Code:
..........
entity_set_stringentEV_SZ_classname"poison" );
set_task8.0"remove_this_ent"ent );
..........

public 
remove_this_entent )
{
    if( !
is_valid_entent ) )
        return;

    
remove_entityent );

Thanks!
Y060N 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 15:04.


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