MemHack - Switch TeamScore
Would this code work? I only got one server and wouldn't like to test this code on that one if there is no way of it to work.
This is not all of the code but you would se all code necessary. Code:
#include <amxmodx> |
Re: MemHack - Switch TeamScore
Why don't you try this:
PHP Code:
|
Re: MemHack - Switch TeamScore
My guess is that this is what it does:
Quote:
|
Re: MemHack - Switch TeamScore
Quote:
|
Re: MemHack - Switch TeamScore
I wish I could help you with the MemHack stuff, but I don't know much about it. I have a few suggestions, though:
1. Code:
2. check_team doesn't do much in the way that you use. It will return a value, but nothing else will happen. You probably want to do something like Code:
Code:
3. You don't need to redefine team and score as sTeam and sScore at the top of your functions, you can just reference team and score. But maybe you have another reason for doing this. 4. You should be able to start your own listen server to test the plugin if you don't want to test it on your live server. Best of luck. Cheers! |
Re: MemHack - Switch TeamScore
This plugin is for Linux x86.
It is other parameters for Windows and Linux x64. ;) I have tried to convert from CsHack Module (C++) to AMXX with MemHack. That is why it looks like it does ;D |
Re: MemHack - Switch TeamScore
This is the C++ code that I have tried to convert with MemHack and Amxx:
Code:
// No more using a counter variable on TeamScore message :-)Code:
#define TEAMDATA_EBX 1975768 // 0x1E25D8 -- unsigned dword (Value of EBX register at CHalflifeMultiplay::Think) |
Re: MemHack - Switch TeamScore
MemHack natives:
memhack_get_realaddr(TEAMDATA_EBX + POINTER_TEAMDATA, MEMTYPE_CODE); Code:
static cell AMX_NATIVE_CALL memhack_get_realaddr(AMX *amx, cell *params)Code:
static cell AMX_NATIVE_CALL memhack_get_pointer(AMX *amx, cell *params)Code:
static cell AMX_NATIVE_CALL memhack_get_pointer(AMX *amx, cell *params)Code:
static cell AMX_NATIVE_CALL memhack_get_short(AMX *amx, cell *params)Code:
static cell AMX_NATIVE_CALL memhack_set_short(AMX *amx, cell *params) |
| All times are GMT -4. The time now is 01:52. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.