Advertisement
supertimor

Untitled

Jan 23rd, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. #pragma semicolon 1
  2. #include <sourcemod>
  3. #define PLUGIN_VERSION "1.0"
  4.  
  5. public Plugin:myinfo =
  6. {
  7. name = "tryb dm na komende",
  8. author = "timor",
  9. description = "zmiana trybu na dm",
  10. version = PLUGIN_VERSION,
  11. url = "http://cs-placzabaw.pl"
  12. };
  13.  
  14. public OnPluginStart()
  15. {
  16. RegAdminCmd("sm_dm", Command_NB, ADMFLAG_KICK);
  17. }
  18.  
  19. public Action:Command_NB(client, args)
  20. {
  21. new Handle:convar = FindConVar("dm_enabled");
  22. new Handle:convar1 = FindConVar("mp_restartgame");
  23. if(GetConVarInt(convar) == 1)
  24. {
  25. SetConVarInt(convar, 0);
  26. SetConVarInt(convar1, 1);
  27. ServerCommand("exec esl5on5.cfg");
  28. }
  29. else if(GetConVarInt(convar) == 0)
  30. {
  31. SetConVarInt(convar, 1);
  32. SetConVarInt(convar1, 1);
  33. ServerCommand("exec dm.cfg");
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement