Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help class limit and vip weapons
#1
hello, i would like to know if its possible to set a class limit example max 2 fat joes and if it is, how. I would allso like to know how to set a admin/vip weapon I know I need to use guid mabey if(guid == "39009090943sdg") or something like that but I dont know just how to do it plese help me :=)
I like turtles
[Image: thumb-275x274-design-609.png]

Reply

#2
name, guid and self is host is fxxked up after mod tools...
I knew this so far
The best way to hide is to change yourself
[Image: y4gg5v83hj1nukndn6x.jpg]
Reply

#3
doesnt help me really sorry
I like turtles
[Image: thumb-275x274-design-609.png]

Reply

#4
here is how i prevent to many scopes from being allowed


Code:
scopecheck()
{

classUsers = 0;
for( i = 0; i < level.players.size; i++ )
{
if( self.pers["team"] == "spectator" )
continue;

if( level.players[i].pers["team"] == "spectator" )
continue;

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" )
continue;

classUsers++;
}

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

return false;
}





then on my menu response thread


Code:
    if( response == "give_sniper" )
        {
        if( scopecheck() )
        {
                //allowed stuff
        }
        else
        {
                //notallowedstuff
        }
    }


it looks like that.. im guessing you're using a custom menu?
Reply

#5
(07-29-2011, 11:21)koil Wrote: here is how i prevent to many scopes from being allowed


Code:
scopecheck()
{

classUsers = 0;
for( i = 0; i < level.players.size; i++ )
{
if( self.pers["team"] == "spectator" )
continue;

if( level.players[i].pers["team"] == "spectator" )
continue;

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" )
continue;

classUsers++;
}

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

return false;
}





then on my menu response thread


Code:
    if( response == "give_sniper" )
        {
        if( scopecheck() )
        {
                //allowed stuff
        }
        else
        {
                //notallowedstuff
        }
    }


it looks like that.. im guessing you're using a custom menu?
Using longer if statement would be easier
Code:
if(blablabla || blablbabla || blablablabla) {
do something
}
The best way to hide is to change yourself
[Image: y4gg5v83hj1nukndn6x.jpg]
Reply

#6
(07-29-2011, 11:21)koil Wrote: here is how i prevent to many scopes from being allowed


Code:
scopecheck()
{

classUsers = 0;
for( i = 0; i < level.players.size; i++ )
{
if( self.pers["team"] == "spectator" )
continue;

if( level.players[i].pers["team"] == "spectator" )
continue;

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" )
continue;

classUsers++;
}

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

return false;
}





then on my menu response thread


Code:
    if( response == "give_sniper" )
        {
        if( scopecheck() )
        {
                //allowed stuff
        }
        else
        {
                //notallowedstuff
        }
    }


it looks like that.. im guessing you're using a custom menu?


thanks i am useing custom class menu but is give_sniper a class? it looks like it is
I like turtles
[Image: thumb-275x274-design-609.png]

Reply

#7
yeah it is a gun for my set up
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Release] [SOURCE] Random Weapons. [HARD] Tony. 1 4,106 11-08-2013, 11:11
Last Post: Nekochan
  Help source random weapons [HARD] Tony. 4 4,708 11-08-2013, 05:25
Last Post: [HARD] Tony.
  [Release] TeamCounter class 8q4s8 3 5,259 10-15-2013, 18:14
Last Post: [HARD] Tony.
  MW3 Hide WEAPONS [HARD] Tony. 7 7,173 10-09-2013, 15:16
Last Post: [HARD] Tony.
  Porting some weapons, ADS broken? DidUknowiPwn 0 2,392 09-10-2013, 01:13
Last Post: DidUknowiPwn
  [Request] Mw2 lock weapons seraph1995 1 3,333 08-18-2013, 15:31
Last Post: DidUknowiPwn
  [Release] Pack-A-Punch Weapons TheSchitt 40 31,635 08-07-2013, 04:51
Last Post: FrostLight
  [Release] Limit items unlocker Gladio 18 12,367 06-06-2013, 17:01
Last Post: conan1
  Help DONATE points for weapons [HARD] Tony. 10 7,459 05-24-2013, 10:59
Last Post: Pozzuh
  [Tutorial] How to import Weapons from SP to MP in Black Ops using Mod Tools d0h! 114 76,886 05-21-2013, 16:33
Last Post: ZURA.

Forum Jump:


Users browsing this thread:
1 Guest(s)

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