02.03.2015, 06:25
Quote:
#define PRESSED(%0) (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0))) // put this on top of ur script public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(PRESSED(KEY_FIRE)) { switch(GetPlayerWeapon(playerid)) { case 38, 42: // use ur forbidden gun { Ban(playerid); } } } return 1; } |