Advertisement
Guest User

ddd

a guest
Mar 5th, 2013
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. #include <sourcemod>
  2. #include <mapchooser>
  3. #include <nextmap>
  4. public Plugin:myinfo = {
  5. name = "roundwin",
  6. author = "Nautik",
  7. description = "Custom Script",
  8. version = "1.0"
  9. }
  10.  
  11. new Handle:g_hConVar;
  12.  
  13. public OnPluginStart()
  14. {
  15. ServerCommand("sm_cvar mp_ignore_round_win_conditions 1");
  16. }
  17.  
  18. public OnMapStart()
  19. {
  20. ServerCommand("sm_cvar mp_ignore_round_win_conditions 1");
  21. }
  22.  
  23. public OnClientPutInServer(iClient)
  24. {
  25. g_hConVar = FindConVar("mp_ignore_round_win_conditions");
  26. new g_bEnabled = GetConVarBool(g_hConVar);
  27. if(g_bEnabled < 1){
  28. ServerCommand("sm_cvar mp_ignore_round_win_conditions 1");
  29. }
  30. }
  31.  
  32. public OnClientDisconnect_Post(iClient)
  33. {
  34. g_hConVar = FindConVar("mp_ignore_round_win_conditions");
  35. new g_bEnabled = GetConVarBool(g_hConVar);
  36. if(g_bEnabled < 1){
  37. ServerCommand("sm_cvar mp_ignore_round_win_conditions 1");
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement