Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void OnPluginStart()
- {
- RegConsoleCmd("startquest", Menu_Test1);
- }
- public void OnClientConnected(int client)
- {
- OnClientCommand(param1, "startquest");
- }
- public int MenuHandler1(Menu menu, MenuAction action, int param1, int param2)
- {
- if (action == MenuAction_Select)
- {
- /* char info[32]; */
- /* bool found = menu.GetItem(param2, info, sizeof(info)); */
- if (param2 == 0)
- {
- KickClient(param1, "Trolling");
- }
- else if (param2 == 1)
- {
- PrintToChat(param1, "Bienvenue Sur UN SERVEUR" );
- }
- }
- else if (action == MenuAction_End)
- {
- delete menu;
- }
- }
- public Action Menu_Test1(int client, int args)
- {
- Menu menu = new Menu(MenuHandler1);
- menu.SetTitle("Are you here for Trolling or Playing/Trading?");
- menu.AddItem("trolling", "Trolling");
- menu.AddItem("playingtrading", "Playing/Trading");
- menu.ExitButton = false;
- menu.Display(client, 60);
- return Plugin_Handled;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement