It was giving you debug errors? Than you should report a bug in amxx bug reports, cuz I'm using this:
PHP Code:
get_players(iPlayers, iPlayersNum, "bch"); // collect only dead. skip hltv and bots.
iPlayers[iPlayersNum] = iPlrId; // person who made jb is alive, so "iPlayersNum" var is lower than 31
iPlayersNum++;
set_hudmessage(...);
for( new iTemp; iTemp<iPlayersNum; iTemp++ )
But ya... When jb failed and user is not alive and all 31 players are spectating him... Yes it can give errors. Will update in some minutes.
Btw. If this scan is preforming - server cannot be empty, cuz else who was trying to jb. Plus using maxplayers... I don't like that way some why - looks & feels not professional.
// edit:
Updated to 1.5 :
Fixed: when jb wasn't made and all 31 players were spectating jumpbugger who dyed - stats weren't showed + errorlog.
__________________