18.02.2015, 19:24
like this:
Код:
stock MyLib_GivePlayerMoney(playerid, amount) { // Call the old version, no need to check if it exists. GivePlayerMoney(playerid, amount); return 1; } // Has this been hooked already? #if defined _ALS_GivePlayerMoney #undef GivePlayerMoney #else #define _ALS_GivePlayerMoney #endif // Reroute future calls to our function. #define GivePlayerMoney MyLib_GivePlayerMoney