SA-MP Forums Archive
How to - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to (/showthread.php?tid=405579)



How to - dr.lozer - 07.01.2013

How to make a anti Weapon Hack

and also explain me the codes...:P if the codes is hard

EDIT: i want like if player hack any weapon then it should report to admins


Re: How to - mineralo - 07.01.2013

just make a timer which will check every player what guns have, and after you can add what weapons are forbidden
exemple
pawn Код:
SetTimer("CheckAntiCheat",1000,1);
forward CheckAntiCheat();
public CheckAntiCheat
{
for(new playerid=0;playerid<MAX_PLAYERS;playerid++)
{
new weap,ammo;
for(new i=1;i<13;i++)
{
GetPlayerWeaponData(playerid,i, weap, ammo);
switch(weap)
{
case:// now add id of weapons which are forbidden and ohter stuff
}
}
}
return 1;
}



Re: How to - dr.lozer - 07.01.2013

nope i want like if player hack any weapon then it should report to admins