So, in order to destroy an entity func_breakable, i did:
PHP Code:
new szClassname[14]
pev(iEntity, pev_classname, szClassname, charsmax(szClassname))
if(equal(szClassname, "func_breakable"))
dllfunc(DLLFunc_Use, iEntity, 0)
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?
__________________