05.05.2011, 12:56
Hello,
I'm trying to find a method to detect if a function has been used. I already thought of one, but this one will undefine the original function.
e.g
It will work, but it won't give the player the desired amount of money.
I hope you have an idea.
I'm trying to find a method to detect if a function has been used. I already thought of one, but this one will undefine the original function.
e.g
pawn Код:
#define GivePlayerMoney GivePlayerMoneyEx
forward GivePlayerMoneyEx(playerid, money);
public GivePlayerMoneyEx(playerid, money)
{
return print("GivePlayerMoney has been used");
}
I hope you have an idea.