Античит на деньги

Moderator: SJplayer

Дим M
Topic author, Администратор
Администратор
Avatar
Дим M
Topic author, Администратор
Администратор
Posts: 1613
Joined: 5 Apr 2013
With us: 11 years 8 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
[center]i love you [s]mxIni[/s] Mysql[/center]


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

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest