18.10.2009, 19:42
SetPlayerArmedWeapon will work. However, hackers might get around that one day. Try this as well - hackers won't be able to break this. I don't recommend it for normal use though - it can be exploited if you know how.
Код:
public OnPlayerUpdate(playerid) { switch (GetPlayerWeapon(playerid)) { case 43,44,45: { new keys, updown, leftright; GetPlayerKeys(playerid, keys, updown, leftright); if (keys & KEY_FIRE) return 0; } } return 1; }