problems with scope check
#1
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?

#2
(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?
Cool DGT The Best Of The Best

Do Not Rep+ Me For Helping

Rep+ If You Liked

Donate Here:
Any Donation Accepted

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



Possibly Related Threads…
Thread Author Replies Views Last Post
  How do you guys check for errors when scripting? akillj 6 6,359 06-15-2013, 10:48
Last Post: Yamato
Music unlimited breath scope+sound when walking aim LE3* 0 3,142 04-21-2013, 08:42
Last Post: LE3*
  Do you play runescape? :D check this out xD [BTK]Foxy 1 4,343 04-05-2013, 18:16
Last Post: SuperNovaAO
  Help CPU Check bypass DemoroCZ 1 3,523 03-20-2013, 14:30
Last Post: JariZ
  [FIX] Mw3 server problems 99IRock 0 4,826 02-02-2013, 00:05
Last Post: 99IRock
  Hot Problems AZUMIKKEL 5 5,630 01-20-2013, 16:19
Last Post: Arteq
  [Release] Auto Quick-Scope V1 for Black Ops d0h! 25 50,030 01-02-2013, 11:55
Last Post: joey
  Problems trying to import BO2 Camos DidUknowiPwn 3 4,498 12-27-2012, 18:11
Last Post: DidUknowiPwn
  Help Server problems (Wierd!) 99IRock 3 5,725 12-03-2012, 20:26
Last Post: 99IRock
  Help New .iwi files problems Shady360 3 5,816 11-30-2012, 13:05
Last Post: Shady360

Forum Jump:


Users browsing this thread:

Forum Powered By MyBB, Theme by © 2002-2026 Melroy van den Berg.