На деньги

Moderator: SJplayer

Дим M
Topic author, Администратор
Администратор
Avatar
Дим M
Topic author, Администратор
Администратор
Reputation: 74
Posts: 1213
Joined: 5 Apr 2013
With us: 6 years 3 months

#1by Дим » 10 May 2013, 18:42

На деньги

Ко всем 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
i love you mxIni Mysql

! ! !


Return to “Античиты”