if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT){ if(GetPlayerWeapon(playerid)== 40) { if (PRESSED(KEY_FIRE)) { SendClientMessage(playerid,COLOR_BRIGHTRED,"Beep!"); } }}