public OnPlayerRequestClass(playerid, classid) { if(classid == 1 && !IsPlayerAdmin(playerid)) // the class id { // code here return 0; } return 1; }