AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Control Lock Mouse (https://forums.alliedmods.net/showthread.php?t=253355)

artist 12-20-2014 14:18

Control Lock Mouse
 
I want to block the movement of the mouse for a while.

Is there any way without ?

Code:
#include <amxmodx> #include <fakemeta> new bool:g_bla[33], g_v_angle[33][3] public plugin_init() {     register_clcmd("say y", "functions")     register_forward(FM_PlayerPreThink, "player_think", 1) } public functions(id) {     if(g_bla[id]) g_bla[id] = false     else     {         pev(id, pev_v_angle, g_v_angle[id])         g_bla[id] = true     } } public player_think(id) {     if(!is_user_alive(id)) return     if(!g_bla[id]) return         set_pev(id, pev_v_angle, g_v_angle[id])     set_pev(id, pev_fixangle, 1) }

Bugsy 12-20-2014 14:28

Re: Control Lock Mouse
 
There's ways to freeze a player I think, just do that.

https://forums.alliedmods.net/showthread.php?t=134516

artist 12-20-2014 14:36

Re: Control Lock Mouse
 
Thank ))


All times are GMT -4. The time now is 15:21.

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