Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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?
Reply

#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?
Reply

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



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

Forum Jump:


Users browsing this thread:
1 Guest(s)

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