01.03.2013, 21:19
(
Последний раз редактировалось Renchand1998; 02.03.2013 в 10:31.
)
Hello everybody, i did today script anti cheat. Script have 8 functions.
This function return amount of player money.
This function give money for player.
This function setting player money.
This function reset player money.
This function give weapon for player.
This function reset one weapon from player.
This function reset all player weapons.
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.
You can freely modify it. Download links below.
http://www.solidfiles.com/d/74f1065d3c/
http://pastebin.com/CBAkgB4L
Код:
GetMoney(PlayerId)
Код:
GiveMoney(PlayerId,Amount)
Код:
SetMoney(PlayerId,Amount)
Код:
ResetMoney(PlayerId)
Код:
GiveWeapon(PlayerId,WeaponId,Ammunition)
Код:
ResetWeapon(PlayerId,WeaponId)
Код:
ResetWeapons(PlayerId)
Код:
GetWeaponSlot(WeaponId)
Код:
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; }
http://www.solidfiles.com/d/74f1065d3c/
http://pastebin.com/CBAkgB4L