How to undefine GetPlayerMoney?
#1

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.
Reply
#2

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.
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)