Raised This Month: $ Target: $400
 0% 

[ORPHEU] Hooking modules functions


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 10-12-2014 , 02:45   [ORPHEU] Hooking modules functions
Reply With Quote #1

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 ?
__________________
The functional way is the right way

Last edited by GordonFreeman (RU); 10-12-2014 at 02:55.
GordonFreeman (RU) is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 10-12-2014 , 04:33   Re: [ORPHEU] Hooking modules functions
Reply With Quote #2

Why don't you just set CSX to rank people based on Steam ID? There's a cvar.
klippy is online now
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 10-12-2014 , 05:44   Re: [ORPHEU] Hooking modules functions
Reply With Quote #3

That for my LAN with DHCP dynamic IPs.
So i prefered nick track.
__________________
The functional way is the right way
GordonFreeman (RU) is offline
Reply


Thread Tools
Display Modes

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 17:31.


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