Участник
Пользователь
- Сообщения
- 278
- Реакции
- 137
I want to remove the freeze model from players but I couldn't do it.
Could you tell me where is the problem?
Could you tell me where is the problem?
PHP:
unfreeze_player(const id)
{
new flags = get_entvar(id, var_flags);
if(flags & FL_FROZEN)
{
set_entvar(id, var_flags, flags & ~FL_FROZEN);
new ent = rg_find_ent_by_owner(ent, "ent_frozen", id);
if(!is_nullent(ent))
{
set_entvar(ent, var_flags, get_entvar(ent, var_flags) | FL_KILLME)
}
}
}