Advertisement
Guest User

Untitled

a guest
Oct 19th, 2012
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.58 KB | None | 0 0
  1. #pragma semicolon 1
  2.  
  3. #include <sourcemod>
  4.  
  5. new Handle:g_hIgnoreWinCond;
  6.  
  7. public OnPluginStart()
  8. {
  9.     g_hIgnoreWinCond = FindConVar("mp_ignore_round_win_conditions");
  10. }
  11.  
  12. public OnMapStart()
  13. {
  14.     SetConVarBool(g_hIgnoreWinCond, true);
  15. }
  16.  
  17. public OnClientPutInServer(iClient)
  18. {
  19.     if (GetClientCount() > 3 && GetConVarBool(g_hIgnoreWinCond)) {
  20.         SetConVarBool(g_hIgnoreWinCond, false);
  21.     }
  22. }
  23.  
  24. public OnClientDisconnect_Post(iClient)
  25. {
  26.     if (GetClientCount() <= 3 && !GetConVarBool(g_hIgnoreWinCond)) {
  27.         SetConVarBool(g_hIgnoreWinCond, true);
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement