How can i make anticheat? I know something tought.
#6

Quote:
Originally Posted by tour15
Посмотреть сообщение
pawn Код:
new RealMoney[500]; //at the top of the script

forward GivePlayerRealMoney(playerid, ammount);// somewhere in the script
public GivePlayerRealMoney(playerid, ammount)
{
   RealMoney[playerid] += ammount;
   GivePlayerMoney(playerid, ammount);
   return 1;
}


if(GetPlayerMoney(playerid) > RealMoney[playerid] ) { SendClientMessage(playerid, color, " Hacks Detected " ); } // Under OnPlayerUpdate
Replace every GivePlayerMoney with GivePlayerRealMoney in your gamemode and you got a quick anti money hack
So if someone hacks money he will get banned. Right?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)