View Single Post
Author Message
HowToRuski
Senior Member
Join Date: Feb 2019
Location: Hungary
Old 03-29-2021 , 13:47   Freeze doesnt apply
Reply With Quote #1

Hello. I have a problem with my plugin. I have applied when a player holds E(+USE) he freezes and when he releases he unfreezes. but my code doesnt work.. anyone knows how to fix this?
Heres some code for just understanding what i mean...
PHP Code:
new g_nomove[33]
public 
fw_PlayerPreThink(id)
{    
    if (
g_nomove[id])
    {
        
set_pev(idpev_maxspeed1.0)
    }
    
    return 
PLUGIN_CONTINUE
}

public 
freeze_starts_here_on_pressing_e(id)
{
    
g_nomove[id] = true// this is where i want it to work but it doesnt


Last edited by HowToRuski; 03-29-2021 at 13:51.
HowToRuski is offline