14.07.2017, 09:18
1- It's a personal preference whether to write down everything in a single .pwn file or multiple ones, going by the first choice, your script might become messy with time, and disabling functions/debugging would be a nightmare, so making separate .pwn files and including them under a main.pwn for example is the way to go (for huge gamemodes)
2- Add some classes
3- Create a new wrapper function for SetPlayerMoney, it would be something like this
or even better, hook SetPlayerMoney funtion
2- Add some classes
3- Create a new wrapper function for SetPlayerMoney, it would be something like this
PHP код:
SetPlayerMoneyEx(playerid, money){
PlayerInfo[playerid][pMoney] += money;
SetPlayerMoney(playerid, PlayerInfo[playerid][pMoney];
}