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

Moderator: SJplayer

Avatar
Topic author
Дим M
Администратор
Администратор
Posts: 1320
With us: 7 years 6 months

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

Post #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

! ! !


  • Similar Topics
    Replies
    Views
    Last post

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

Who is online

Users browsing this forum: 1 guest