Raised This Month: $ Target: $400
 0% 

stop mouse on intermission


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
666
Senior Member
Join Date: Mar 2015
Old 09-06-2018 , 14:53   Re: stop mouse on intermission
Reply With Quote #1

Quote:
Originally Posted by Ghosted View Post
But intermission already blocks mouse
I was searching and found this function but you see some vibrations when moving the mouse, it is possible to remove those vibrations or there is another better function

PHP Code:
#include < amxmodx > 
#include < engine > 

#define VERSION "0.0.1" 

static bool:g_bHasAngleLock33 ]; 
static 
Float:g_flLockedAngles33 ][ ]; 

public 
plugin_init()  

    
register_plugin"LOCK TEH ANGLEZ"VERSION,"Juice" ); 
    
register_clcmd"say /lock""ClientCommand_Lock" ); 


public 
client_putinserverid )      

    
g_bHasAngleLockid ] = false
    
g_flLockedAnglesid ][ ] = g_flLockedAnglesid ][ ] = g_flLockedAnglesid ][ ] = 0.0;  


public 
client_disconnectid )  
{     
    
g_bHasAngleLockid ] = false
    
g_flLockedAnglesid ][ ] = g_flLockedAnglesid ][ ] = g_flLockedAnglesid ][ ] = 0.0


public 
ClientCommand_Lockid 

    
g_bHasAngleLockid ] = !g_bHasAngleLockid ]; 
    
entity_get_vectoridEV_VEC_v_angleg_flLockedAnglesid ] ); 


public 
client_PreThinkid 

    if( 
is_user_aliveid ) && g_bHasAngleLockid ] ) 
    { 
        
entity_set_vectoridEV_VEC_anglesg_flLockedAnglesid ] ); 
        
entity_set_intidEV_INT_fixangle); 
    } 

666 is offline
Reply



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 09:55.


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