Englisch Team balance script fix icon

2 Kommentare
16.04.18 00:34:20
859 b, 7 Downloads
SkullFace
User
Offline Off
Originally by Manny
(Profile :http://www.unrealsoftware.de/profile.php?userid=11681)
(File :http://www.unrealsoftware.de/files_show.php?file=7037)

I've been having a problem with his script, it is a neat script actually, but I saw just 1 problem.
Whenever teams had equal amount of players on both sides (e.g. 9=9), one from Team A could switch to Team B, which leads to unbalanced teams (10=8).
So, all I did was change the expression from
Code:
CT > T
to
Code:
CT >= T


Check the link below for GIF example.
https://i.imgur.com/GEXqbJS.gif
4× editiert, zuletzt 17.04.18 09:39:39
ok Diese Datei wurde geprüft und zugelassen von DC (24.04.18 22:16:54)

Kommentare

2 Kommentare
Gehe zu Seite
Zum Anfang Vorherige 1 Nächste Zum Anfang

Logge dich ein!

Du musst dich einloggen, um selber Kommentare verfassen zu können!Einloggen
16.04.18 09:43:07
Hoch
SkullFace
User
Offline Off
Hey, @user mrc:, forgot about spectators completely. Just changed the lines in the script. Thanks!

EDIT: Fixed again, I forgot to remove ''then'' before ''or'' when i copy+pasted the line
1× editiert, zuletzt 17.04.18 09:26:15
16.04.18 04:35:11
Hoch
mrc
User
Offline Off
Hey buddy, change these to the script be perfect:

1. if player(id,"team") == 2 then TO if player(id,"team") == 2 or player(id,"team") == 0 then

2. if player(id,"team") == 1 then TO if player(id,"team") == 1 or player(id,"team") == 0 then

This way even spectators are not allowed to join a team with a higher number of players.
Zum Anfang Vorherige 1 Nächste Zum Anfang