21.09.2010, 16:57
It won't work, at least I think so.
And you also had an extra parameter on GetPlayerWeapon.
Should work.
And you also had an extra parameter on GetPlayerWeapon.
pawn Код:
public AntiWeapon(playerid)
{
for(new i = 1; i < 46; i++)
{
if(GetPlayerWeapon(playerid) == i)
{
Cheat(playerid, "Weapon Hack");
}
}
}