AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [SOLVED] ConVar Change Hook (https://forums.alliedmods.net/showthread.php?t=278033)

Vit_amin 01-23-2016 11:28

[SOLVED] ConVar Change Hook
 
How Hook this in pawn ?

addons_zz 01-23-2016 11:36

Re: ConVar Change Hook
 
Try this Module: Cvar Utilities (v1.6) by Arkshine.

Bugsy 01-23-2016 11:38

Re: ConVar Change Hook
 
Are you asking for SM or AMX-X?

Vit_amin 01-23-2016 11:38

Re: ConVar Change Hook
 
Amx Mod

Vit_amin 01-23-2016 11:39

Re: ConVar Change Hook
 
What is this func ?
register_forward(FM_CVarGetString, "Event_CvarChange")
I doesn't test, because don't know what is params in callback

Bugsy 01-23-2016 11:51

Re: ConVar Change Hook
 
Just use CVar Utilities. If there was an easier/out of the box way to do this, Arkshine would not have made the module. You are welcome to experiment and try things of course.

klippy 01-23-2016 12:00

Re: ConVar Change Hook
 
If you are using AMXX 1.8.3, then you can also hook cvar changes without any additional modules, using hook_cvar_change.

Vit_amin 01-23-2016 12:19

Re: ConVar Change Hook
 
Thank, but where find Stable 1.8.3 (in Download page only SnapShots) ?

ddhoward 01-23-2016 12:20

Re: ConVar Change Hook
 
They are stable snapshots, and should be safe to use.

Arkshine 01-23-2016 12:30

Re: ConVar Change Hook
 
If possible, it's recommenced to not use CvarUtilities, it does some silly thing. Implementation in 1.8.3-dev is overall better.


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

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