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

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 " );    Ban(playerid); } // Under OnPlayerUpdate

I made it for you
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)