switch (keys) { case 1: { //code to give weapons or u can call another function in the plugin } case 2: { //code to give weapons or u can call another function in the plugin } }