Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.44 KB | None | 0 0
  1. #include <sourcemod>
  2.  
  3. public Plugin:myinfo =
  4. {
  5. name = "rehn's Simple Server Cmds",
  6. author = "rehn",
  7. description = "Simple chat commands for my csgo server",
  8. version = "1.0",
  9. url = "www.mheese.com"
  10. }
  11.  
  12. public OnPluginStart()
  13. {
  14.  
  15. RegConsoleCmd("sm_pause", PauseRound);
  16. RegConsoleCmd("sm_unpause", UnpauseRound);
  17. RegAdminCmd("sm_rr", RestartGame, ADMFLAG_GENERIC);
  18. RegAdminCmd("sm_prac", ExecPrac, ADMFLAG_GENERIC);
  19. RegAdminCmd("sm_5on5", Exec5on5, ADMFLAG_GENERIC);
  20. RegAdminCmd("sm_botdm", ExecBotdm, ADMFLAG_GENERIC);
  21. RegAdminCmd("sm_lo3", LiveOn3, ADMFLAG_GENERIC);
  22. RegAdminCmd("sm_knife", KnifeRound, ADMFLAG_GENERIC);
  23. }
  24.  
  25.  
  26. public Action:PauseRound(client, args)
  27. {
  28. ServerCommand("mp_pause_match");
  29. ServerCommand("say Match will be paused at freezetime");
  30. }
  31.  
  32. public Action:UnpauseRound(client, args)
  33. {
  34. ServerCommand("mp_unpause_match");
  35. ServerCommand("say Match is unpaused");
  36. }
  37.  
  38. public Action:RestartGame(client, args)
  39. {
  40. ServerCommand("mp_restartgame 1");
  41. ServerCommand("say Restarting...");
  42. }
  43.  
  44. public Action:ExecPrac(client, args)
  45. {
  46. ServerCommand("exec train.cfg");
  47. }
  48.  
  49. public Action:Exec5on5(client, args)
  50. {
  51. ServerCommand("exec esl5on5.cfg");
  52. ServerCommand("say Type !lo3 when ready")
  53. }
  54.  
  55. public Action:ExecBotdm(client, args)
  56. {
  57. ServerCommand("exec botdm.cfg");
  58. }
  59.  
  60. public Action:LiveOn3(client, args)
  61. {
  62. ServerCommand("mp_unpause_match");
  63. ServerCommand("mp_restartgame 1");
  64. CreateTimer(1.0, Lo32);
  65. }
  66.  
  67. public Action:Lo32(Handle timer)
  68. {
  69. ServerCommand("mp_restartgame 1");
  70. CreateTimer(1.0, Lo33);
  71. }
  72. public Action:Lo33(Handle timer)
  73. {
  74. ServerCommand("mp_restartgame 3");
  75. CreateTimer(3.5, Lo3T);
  76. }
  77. public Action:Lo3T(Handle timer)
  78. {
  79. ServerCommand("say --[Live]----")
  80. ServerCommand("say ---[Live]---")
  81. ServerCommand("say ----[Live]--")
  82. ServerCommand("say -----[Live]-")
  83. ServerCommand("say ------[Live]")
  84. ServerCommand("say -------[Live")
  85. ServerCommand("say --------[Liv")
  86. ServerCommand("say ---------[Li")
  87. ServerCommand("say ----------[L")
  88. ServerCommand("say -----------[")
  89. ServerCommand("say ]-----------")
  90. ServerCommand("say e]----------")
  91. ServerCommand("say ve]---------")
  92. ServerCommand("say ive]--------")
  93. ServerCommand("say Live]-------")
  94. ServerCommand("say [Live]------")
  95. ServerCommand("say -[Live]-----")
  96. ServerCommand("say --[Live]----")
  97. ServerCommand("say ---[Live]---")
  98. }
  99.  
  100. public Action:KnifeRound(client, args)
  101. {
  102. ServerCommand("exec knife.cfg")
  103. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement