Raised This Month: $ Target: $400
 0% 

Remove func_breakable will crash server


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hzqst
Senior Member
Join Date: Jul 2008
Old 12-27-2008 , 10:26   Remove func_breakable will crash server
Reply With Quote #1

if I remove a func_breakable, it will crash my server
engfunc(EngFunc_RemoveEntity, entity)
I have tried DLL Think but doesn't work
hzqst is offline
SchlumPF*
Veteran Member
Join Date: Mar 2007
Old 12-27-2008 , 10:53   Re: Remove func_breakable will crash server
Reply With Quote #2

paste your code, im remove func_breakables in one of my plugins too but it never crashed the server
__________________
SchlumPF* is offline
Send a message via ICQ to SchlumPF*
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 12-27-2008 , 11:11   Re: Remove func_breakable will crash server
Reply With Quote #3

try
Code:
set_pev(ent, pev_flags, pev(ent, pev_flags) | FL_KILLME)
__________________

Community / No support through PM
danielkza is offline
hzqst
Senior Member
Join Date: Jul 2008
Old 12-27-2008 , 11:20   Re: Remove func_breakable will crash server
Reply With Quote #4

thx I 've tested with it before you post ...
hzqst is offline
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 12-27-2008 , 11:23   Re: Remove func_breakable will crash server
Reply With Quote #5

Quote:
Originally Posted by danielkza View Post
try
Code:
set_pev(ent, pev_flags, pev(ent, pev_flags) | FL_KILLME)
And if it's not in the Think forward of the entity:
PHP Code:
set_peventpev_flagspeventpev_flags ) | FL_KILLME );
dllfuncDLLFunc_Thinkent ); 
EDIT: Oh, never mind, you've already tested it...
__________________
O o
/¯________________________
| IMMA FIRIN' MAH LAZOR!!!
\_¯¯¯
Dores is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 12-28-2008 , 20:03   Re: Remove func_breakable will crash server
Reply With Quote #6

You can also make it use itself, although it will come back if it's set to:

Code:
dllfunc(DLLFunc_Use,ent,ent)

It's possible that it may not work like that, so you may have to add:

Code:
dllfunc(DLLFunc_Touch,ent,ent)
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
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 09:19.


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