Thread: entity reset
View Single Post
lexzor
Veteran Member
Join Date: Nov 2020
Old 11-23-2020 , 23:41   Re: entity reset
Reply With Quote #5

it's a misunderstanding. i want to make a menu from where u can disable/enable an entity. in this case, is a christmas hat. this christmas hat is assigned for both teams. like

PHP Code:
new const g_szHatModel[CsTeams][] = 
{
"",
"models/t_santa.mdl",
"models/ct_santa.mdl",
""

and i want to put them like this
PHP Code:
new CsTeams:iTeam cs_get_user_team(id)
entity_set_model(iEntityg_szHatModel[iTeams]) 
i already make them appear on player head, but i can t make them dissapear and if i'm at ct and i press 1 when i'm in above menu and then change team and do same thing, the entitys overlapping.

Last edited by lexzor; 11-23-2020 at 23:41.
lexzor is offline