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

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
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)