24.06.2018, 09:37
Under OnPlayerUpdate,
Note: This aint the efficient code. You should look at the Anti Weapon Hack tutorials if you want to make a good one. RogueDriffter has some good points.
PHP код:
new Gun = GetPlayerWeapon(playerid);
if(Gun == 35/*RPG*/ || Gun == 36 /*Heatseaker*/ || Gun == 38 /*Minigun*/ && CHECK HERE IF PLAYER IS NOT IN EVENT)
{
//if hes hacking.
printf("ID %d Hacking %d",playerid,Gun); //make changes here.
}