Advertisement
Edou68FR

Untitled

Aug 30th, 2015
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. public void OnPluginStart()
  2. {
  3. RegConsoleCmd("startquest", Menu_Test1);
  4. }
  5.  
  6. public void OnClientConnected(int client)
  7. {
  8.  
  9. OnClientCommand(param1, "startquest");
  10.  
  11. }
  12.  
  13. public int MenuHandler1(Menu menu, MenuAction action, int param1, int param2)
  14. {
  15.  
  16.  
  17. if (action == MenuAction_Select)
  18. {
  19. /* char info[32]; */
  20. /* bool found = menu.GetItem(param2, info, sizeof(info)); */
  21.  
  22.  
  23. if (param2 == 0)
  24. {
  25.  
  26. KickClient(param1, "Trolling");
  27.  
  28.  
  29.  
  30. }
  31.  
  32. else if (param2 == 1)
  33. {
  34.  
  35. PrintToChat(param1, "Bienvenue Sur UN SERVEUR" );
  36.  
  37. }
  38.  
  39.  
  40. }
  41.  
  42. else if (action == MenuAction_End)
  43. {
  44. delete menu;
  45. }
  46. }
  47.  
  48. public Action Menu_Test1(int client, int args)
  49. {
  50. Menu menu = new Menu(MenuHandler1);
  51. menu.SetTitle("Are you here for Trolling or Playing/Trading?");
  52. menu.AddItem("trolling", "Trolling");
  53. menu.AddItem("playingtrading", "Playing/Trading");
  54. menu.ExitButton = false;
  55. menu.Display(client, 60);
  56.  
  57. return Plugin_Handled;
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement