Detection - 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: Detection (
/showthread.php?tid=655786)
Detection -
Hunud - 29.06.2018
I have this code. Does it will work if player use cheat and shooting without weapon in his hands ?
Code:
if (weaponid < 22 || weaponid > 38)
{
Kick(playerid);
return 0;
}
Re: Detection -
CodeStyle175 - 29.06.2018
you can create loop with GetPlayerWeaponData and check if players has some weapons that doesnдt appear in script.