21.09.2010, 16:53
Hi
Im currently creating an anti-weapons function (or 'Timer' if you like) - I'm not sure if it will work however, and thought i'd ask on here:
Here's the code:
I know alot of you will say "Try it yourself" but i just want to know, from a coding point of view, should it work?
Thanks
Ash
Im currently creating an anti-weapons function (or 'Timer' if you like) - I'm not sure if it will work however, and thought i'd ask on here:
Here's the code:
pawn Код:
//I have forwarded it earlier in the script by the way :)
public AntiWeapon(playerid)
{
new Weapons = 1 || 2 || 3 || 4 || 5 || 6 || 7 || 8 || 9 || 10 || 11 || 12 || 13 || 14 || 15 || 16 || 17 || 18 || 22 || 23 || 24 || 25 || 26 || 27 || 28 || 29 || 30 || 31 || 32 || 33 || 34 || 35 || 36 || 37 || 38 || 39 || 40 || 41 || 42 || 43 || 44 || 45;
if(GetPlayerWeapon(playerid, Weapons) == 1)
{
Cheat(playerid, "Weapon Hack");
}
}
Thanks
Ash