AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [ORPHEU] Hooking modules functions (https://forums.alliedmods.net/showthread.php?t=249780)

GordonFreeman (RU) 10-12-2014 02:45

[ORPHEU] Hooking modules functions
 
How to hook amxx module functions with orpheu?
I want to change handle of nick change in csx module.
For example, if players change nick and this doesn't exists, its not create new entry, but changes nick for current rank.

CSX Nick change handle


As i think i need to hook ClientUserInfoChanged_Post, findEntryInRank and setName functions.
How to do it?

First i tried to hook findEntryInRank. Here is sig (for latest csx dev build):
findEntryInRank sig


But after player join server its crashed.
Plugin that i tried:
Spoiler


After i tried to hook ClientUserInfoChanged_Post, nothing happens, no crash, no hook.
Sigs


Test ppl


Can someone show me how to modules functions ? :D

klippy 10-12-2014 04:33

Re: [ORPHEU] Hooking modules functions
 
Why don't you just set CSX to rank people based on Steam ID? There's a cvar.

GordonFreeman (RU) 10-12-2014 05:44

Re: [ORPHEU] Hooking modules functions
 
That for my LAN with DHCP dynamic IPs.
So i prefered nick track.


All times are GMT -4. The time now is 17:31.

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