Raised This Month: $ Target: $400
 0% 

Removing entity on player disconnect.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
KiLLeR.
Senior Member
Join Date: Jul 2014
Location: Bulgaria
Old 12-06-2014 , 09:06   Removing entity on player disconnect.
Reply With Quote #1

When a player disconnect from the server, I use this code for abolishing its entities.
PHP Code:
public client_disconnect(id)
{    
    if(
is_valid_ent(find_ent_by_owner(-1"info_mine"id)))
    {
        
remove_entity(find_ent_by_owner(-1"info_mine"id));
    }

That is correct way?

Last edited by KiLLeR.; 12-13-2014 at 12:05.
KiLLeR. 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 15:18.


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