How to undefine GetPlayerMoney? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to undefine GetPlayerMoney? (
/showthread.php?tid=653160)
How to undefine GetPlayerMoney? -
andrejc999 - 27.04.2018
Hello everyone,
I'm currently making a custom money textdraw and system for my server and I can't find a way to undefine the GetPlayerMoney function.
When I compile
Код:
#undef GetPlayerMoney
#undef GivePlayerMoney
it gives me 7 errors saying undefined symbol "GetPlayerMoney" and "GivePlayerMoney".
I don't know how to undefine those 2 functions and I can't find anything about it on the internet, so can somebody help me?
Thanks in advanced.
Re: How to undefine GetPlayerMoney? -
RogueDrifter - 27.04.2018
A perfect example is an anti money cheat, check this out
https://github.com/RogueDrifter/Anti...aster/rAmc.inc
Its called hooking, check this out too
https://sampforum.blast.hk/showthread.php?tid=392061
And this could help
https://sampforum.blast.hk/showthread.php?tid=497081
GL.
Re: How to undefine GetPlayerMoney? -
andrejc999 - 27.04.2018
I already have my very own anti cheat on my server and all I want is to completly remove the GetPlayerMoney and GivePlayerMoney functions from my GM. But thanks anyway.
EDIT: Maybe I should only remove the GetPlayerMoney and GivePlayerMoney native from a_players?
2nd EDIT: I think I did it. I just put // in front of native GivePlayerMoney in the a_players and it seems like it's working. I'm gonna test it out now.