public OnPlayerRequestClass(playerid, classid){ switch(classid) { case 0: { //code here } case 1: { //code here ... etc } } return 1;}