public void onClientEvent(Client player, params object[] arguments) { if (arguments.Length == 0) { return; } ERPCs rpc = (ERPCs)arguments[0]; switch (rpc) { case ERPCs.EXAMS_QUESTIONS: CRPCExamsQuestion examsQuestions = new CRPCExamsQuestion(); if (ProcessRPC(examsQuestions, arguments)) { OnExamsQuestions(player, examsQuestions); } break; } }
void OnExamsQuestions(Client player, CRPCExamsQuestion rpc) { // player.TriggerClient(ERPCs.EXAMS_QUESTIONS_CALLBACK, Globals.Systems.exams.GetExamQuestions((byte)rpc.examID)); }