08.06.2016, 10:44
You don't really need to do that, you can just replace them all at once by pressing ctrl + H.
But anyway;
But anyway;
PHP код:
#if defined _ALS_GivePlayerMoney
#undef GivePlayerMoney
#else
#define _ALS_GivePlayerMoney
#endif
#define GivePlayerMoney GivePlayerMoneyZ
// stock isn't needed for this
GivePlayerMoneyZ( playerid, ammount )
{
GivePlayerMoney( playerid, ammount );
MONEY[ playerid ] +=ammount;
}