How can i make anticheat? I know something tought. -
Sensitive - 29.08.2011
Hello..
How can i change that like if it is GivePlayerMoney then it will ban player, but other functions would say like GivePlayerRealMoney?
And GivePlayerWeapon to GivePlayerRealWeapon?
I would appreciate help, and give 2 rep for help. I really need to know that
.
Re: How can i make anticheat? I know something tought. -
=WoR=Varth - 29.08.2011
With variable.
Check some anti-cheat FS/include.
Re: How can i make anticheat? I know something tought. -
DiDok - 29.08.2011
Yes, that's what you do, you make internal function and internal saving of money/weapons
Also prepare for shitstorm of false-positive bans unless you decide not to ban people for it
Re: How can i make anticheat? I know something tought. -
Lorenc_ - 29.08.2011
You need to create variables for each thing you want to create a anticheat for.
pawn Код:
new AC_pCash[ MAX_PLAYERS ];
#define GetPlayerCash(%1) AC_Cash[(%1)]
if( GetPlayerMoney( playerid ) != GetPlayerCash( playerid ) ) ResetPlayerMoney( playerid ), GivePlayerCash( GetPlayerCash( playerid );
^ Example
Re: How can i make anticheat? I know something tought. -
TouR - 29.08.2011
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
Re: How can i make anticheat? I know something tought. -
Sensitive - 30.08.2011
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?
Re: How can i make anticheat? I know something tought. -
TouR - 30.08.2011
He will get a message "HAcks Detected" modifie it so he gets baned
Re: How can i make anticheat? I know something tought. -
Sensitive - 30.08.2011
So i will add this
under the SendClientMessage thing where it says hacks detected?
?
Re: How can i make anticheat? I know something tought. -
TouR - 30.08.2011
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
Re: How can i make anticheat? I know something tought. -
Markx - 30.08.2011
Impossible to hack money with this:
https://sampforum.blast.hk/showthread.php?tid=71136