Where is the code that detects pressing E?
Also, setting maxspeed to 1 is not a good way of freezeing someone.
Code:
set_player_freeze(id, bool:bFreeze)
{
if(bFreeze)
{
set_pev(id, pev_flags, pev(id, pev_flags) | FL_FROZEN)
}
else
{
set_pev(id, pev_flags, pev(id, pev_flags) &~ FL_FROZEN)
}
}
__________________