Thread
: [Solved]
hide entity
View Single Post
Tote
Senior Member
Join Date: Jul 2023
08-07-2023 , 03:29 Re: hide entity
#
6
i tried using this: it works, but it lags the server uses too much CPU suddenly and spams Errors in Console:
ERRORS:
L 08/07/2023 - 00:11:47: [FAKEMETA] Invalid entity
L 08/07/2023 - 00:11:47: [AMXX] Displaying debug trace (plugin "Untitled.amxx", version "1.0")
L 08/07/2023 - 00:11:47: [AMXX] Run time error 10: native error (native "pev")
L 08/07/2023 - 00:11:47: [AMXX] [0] Untitled.sma::ForwardAddToFullPack (line 3453)
L 08/07/2023 - 00:11:47: [FAKEMETA] Invalid entity
Thats the error which spams in my console and i have tried your way too @Mr.Pickles
if(!is_valid_ent(ent))
return 1;
if(equal(classname, "ent_hat") == ent || ent == equal(classname, "ent_hat"))
{
set_es( es_handle, ES_RenderMode, kRenderTransAlpha );
set_es( es_handle, ES_RenderAmt, 0 );
}
Tote
View Public Profile
Send a private message to Tote
Find More Posts by Tote