Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <sourcemod>
- stock int PoliczGraczy()
- {
- int ilosc = 0;
- for(int i = 1; i<=MaxClients; i++)
- {
- if(IsValidClient(i))
- ilosc++;
- }
- return ilosc;
- }
- public void OnPluginStart()
- {
- CreateTimer(0.1, Sprawdz, _, TIMER_REPEAT);
- }
- public Action Sprawdz(Handle timer)
- {
- int graczy = PoliczGraczy();
- if(graczy < 1)
- CS_TerminateRound(0.1, CSRoundEnd_Draw, true);
- }
Advertisement
Add Comment
Please, Sign In to add comment