public OnPlayerKeyStateChange(playerid, oldkeys, newkeys){ if((newkeys & KEY_FIRE) && GetPlayerWeapon == some weapon id) { //tazer cmd }}