Skip to content

Commit 81d951c

Browse files
committed
stocks: fix team index in get_players_num
1 parent ebba390 commit 81d951c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cstrike/addons/amxmodx/scripting/include/map_manager_stocks.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ stock get_players_num(ignore = 0)
5858
}
5959
new pnum;
6060
for(new i = 1; i <= maxplayers; i++) {
61-
if(ignore && i == ignore
61+
if(ignore > 0 && i == ignore
6262
|| !is_user_connected(i)
6363
|| is_user_bot(i)
6464
|| is_user_hltv(i)) {
@@ -67,7 +67,7 @@ stock get_players_num(ignore = 0)
6767

6868
if(ignore == -1) {
6969
new team = get_user_team(i);
70-
if(team == 0 || team == 4) {
70+
if(team == 0 || team == 3) {
7171
continue;
7272
}
7373
}

0 commit comments

Comments
 (0)