07-24-2011, 06:56
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?