Quote:
Originally Posted by SickAttack
pawn Код:
stock Hook_GivePlayerMoney(playerid, amount) { Account[playerid][PocketMoney] += amount;
ResetPlayerMoney(playerid); return GivePlayerMoney(playerid, Account[playerid][PocketMoney]); }
#if defined _ALS_GivePlayerMoney #undef GivePlayerMoney #else #define _ALS_GivePlayerMoney #endif
#define GivePlayerMoney Hook_GivePlayerMoney
stock SetPlayerMoney(playerid, amount) { Account[playerid][PocketMoney] = amount;
ResetPlayerMoney(playerid); return GivePlayerMoney(playerid, amount); }
There's no need for any "Ex" functions. Put the hook in your script before it is used anywhere.
Use "SetPlayerMoney" when a player logs in and use "GivePlayerMoney" everywhere else.
P.S. There are 3 LSL CNR servers now? Seriously?
And so much CNR edits this year...
|
Thanks.. anyways yeah i've seen it. That's why i'm starting from the bottom and doing everything properly