Raised This Month: $ Target: $400
 0% 

[SOLVED] func_breakable how to know if it was used/broke?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 09-06-2015 , 18:14   [SOLVED] func_breakable how to know if it was used/broke?
Reply With Quote #1

So, in order to destroy an entity func_breakable, i did:
PHP Code:
new szClassname[14]
pev(iEntitypev_classnameszClassnamecharsmax(szClassname))
                
if(
equal(szClassname"func_breakable"))
    
dllfunc(DLLFunc_UseiEntity0
It works fine, but if i call the code again, it is used again. So, should i hook Ham_Use to check when it's used and block a second usage? Is there any better solution?
__________________
Jhob94 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 22:17.


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