Raised This Month: $51 Target: $400
 12% 

Freeze doesnt apply


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:20.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode