[SOLVED] ConVar Change Hook
How Hook this in pawn ?
|
Re: ConVar Change Hook
Try this Module: Cvar Utilities (v1.6) by Arkshine.
|
Re: ConVar Change Hook
Are you asking for SM or AMX-X?
|
Re: ConVar Change Hook
Amx Mod
|
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 |
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.
|
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.
|
Re: ConVar Change Hook
Thank, but where find Stable 1.8.3 (in Download page only SnapShots) ?
|
Re: ConVar Change Hook
They are stable snapshots, and should be safe to use.
|
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.