public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(newkeys & KEY_CROUCH)// C { // add the code to join a group - i.e SetPlayerHealth(playerid,0); } return1; }
I'm not sure if horn at G possible since that's the only way to actually horn in a var.