Ко всем define добавляем:
Code: Select all
#define eGivePlayerMoney(%0,%1); SetPVarInt(%0,"Cash",GetPVarInt(%0,"Cash")+%1); ResetPlayerMoney(%0); GivePlayerMoney(%0,GetPVarInt(%0,"Cash"));
#define eGetPlayerMoney(%0) GetPVarInt(%0,"Cash")
В public OnPlayerUpdate(playerid)
Code: Select all
if( GetPlayerMoney ( playerid ) != eGetPlayerMoney ( playerid ) ) ResetPlayerMoney( playerid ), GivePlayerMoney( playerid, eGetPlayerMoney ( playerid ) );
Теперь осталось все GetPlayerMoney заменить на eGetPlayerMoney, а GivePlayerMoney на eGivePlayerMoney