[FilterScript] Anti Cheat
#1

Hello everybody, i did today script anti cheat. Script have 8 functions.
Код:
GetMoney(PlayerId)
This function return amount of player money.
Код:
GiveMoney(PlayerId,Amount)
This function give money for player.
Код:
SetMoney(PlayerId,Amount)
This function setting player money.
Код:
ResetMoney(PlayerId)
This function reset player money.
Код:
GiveWeapon(PlayerId,WeaponId,Ammunition)
This function give weapon for player.
Код:
ResetWeapon(PlayerId,WeaponId)
This function reset one weapon from player.
Код:
ResetWeapons(PlayerId)
This function reset all player weapons.
Код:
GetWeaponSlot(WeaponId)
This function return a slot from weapon id. But this not all, if player use money hack this his money has been reset. And same with weapon hack. Now also looking for speed hack in players.
Код:
forward AntiCheat(PlayerId,Cheat_Type,WeaponId);
public AntiCheat(PlayerId,Cheat_Type,WeaponId)
{
	if(Cheat_Type == Cheat_Type_Money) SetMoney(PlayerId,Player[PlayerId][PlayerMoney]);
	if(Cheat_Type == Cheat_Type_Weapons) ResetWeapon(PlayerId,WeaponId);
	if(Cheat_Type == Cheat_Type_Player_Speed) SetPlayerHealth(PlayerId,0);
	if(Cheat_Type == Cheat_Type_Vehicle_Speed) DestroyVehicle(GetPlayerVehicleID(PlayerId));
	return 1;
}
You can freely modify it. Download links below.
http://www.solidfiles.com/d/74f1065d3c/
http://pastebin.com/CBAkgB4L
Reply


Messages In This Thread
Anti Cheat - by Renchand1998 - 01.03.2013, 21:19
Re: Anti Cheat - by Alekseyka - 01.03.2013, 21:35
Re: Anti Cheat - by Renchand1998 - 01.03.2013, 21:37
Re: Anti Cheat - by Alekseyka - 01.03.2013, 21:38
Re: Anti Cheat - by Krisna - 02.03.2013, 01:51
Re: Anti Cheat - by SeV_ - 02.03.2013, 01:53
Re: Anti Cheat - by Renchand1998 - 02.03.2013, 10:33
Re: Anti Cheat - by YahyaBR - 03.03.2013, 08:59
Re: Anti Cheat - by NeyMar96 - 03.03.2013, 09:33
Re: Anti Cheat - by Renchand1998 - 03.03.2013, 12:59

Forum Jump:


Users browsing this thread: 1 Guest(s)