Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {allplayers} = 0
- {maxallplayers} = 250
- on load:
- kick all players due to "Prosimy wejsc ponownie..."
- wait 1 tick
- set {allplayers} to 0
- stop
- on connect:
- if {allplayers} = {maxallplayers}:
- kick player due to "Za duzo osob na serwie"
- stop
- if {allplayers} < {maxallplayers}:
- add 1 to {allplayers}
- stop
- else:
- if player has permission "*":
- add 1 to {allplayers}
- stop
- else:
- kick player due to "Za duzo osob na serwie"
- stop
- on disconnect:
- remove 1 from {allplayers}
- stop
- command /setmaxplayer [<number>]:
- permission: *
- trigger:
- if arg 1 is set:
- set {maxallplayers} to arg 1
- send "Ustawiles max ilosc osob na %{maxallplayers}%"
- stop
- if arg 1 is not set:
- send "Podaj ilosc osob ktorzy moga wejsc na serwer"
- send "Aktualnie: %{maxallplayers}%"
- send "Na serwerze jest %{allplayers}%"
- stop
- on first connect:
- kick player due to "&aProsimy, zaloguj sie ponownie na nasz serwer!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement