Code:

`scopecheck()`

{

classUsers = 0;

for( i = 0; i < level.players.size; i++ )

{

if( self.pers["team"] != level.players[i].pers["team"] )

continue;

if( self == level.players[i] )

continue;

if( level.players[i].pers["mod_primary"] == "mosin_sp" || level.players[i].pers["mod_primary"] == "l96a1_mp" )

classUsers++;

}

if( classUsers < level.weaponLimit["weapon_sniper"] )

return true;

return false;

}

for some reason i think its still counting people who left the server.. as limits arent working the way its intended, any idea why?

(07-24-2011, 06:56)koil Wrote: [ -> ]
Code:

`scopecheck()`

{

classUsers = 0;

for( i = 0; i < level.players.size; i++ )

{

if( self.pers["team"] != level.players[i].pers["team"] )

continue;

if( self == level.players[i] )

continue;

if( level.players[i].pers["mod_primary"] == "mosin_sp" || level.players[i].pers["mod_primary"] == "l96a1_mp" )

classUsers++;

}

if( classUsers < level.weaponLimit["weapon_sniper"] )

return true;

return false;

}

for some reason i think its still counting people who left the server.. as limits arent working the way its intended, any idea why?

you want the number of players?

no it already does that.. i done it a diff way and think it works now, thanks anyway..