Page 29 of 29 FirstFirst ... 19272829
Results 281 to 288 of 288
  1. #281
    Senior Member
    Join Date
    Jul 2014
    Location
    Alabama
    Posts
    253
    Quote Originally Posted by cscott69 View Post
    Not sure about insane likmits as it isnt working for me, It wont let me do anything with it. How did you load it into insane limits? I also keep getting a system.securioty.security.exception in insane limits
    I just followed his steps: https://forum.myrcon.com/showthread....t-%28v1-4-1%29

    Note, you have to make 3 limits. I labelled them sniper limit 1, sniper limit 2 and sniper limit 3

  2. #282
    Quote Originally Posted by Mamba334 View Post
    I just followed his steps: https://forum.myrcon.com/showthread....t-%28v1-4-1%29

    Note, you have to make 3 limits. I labelled them sniper limit 1, sniper limit 2 and sniper limit 3
    FOr some reason Insane limits wont let me make any limits...any suggestions? I can make list, but cant add or start any limits.
    Last edited by cscott69; 04-02-2016 at 22:17.

  3. #283
    Senior Member
    Join Date
    Oct 2014
    Location
    New Mexico
    Posts
    116
    I have both rulz and insane limits for BF3 server. Are we still using this code to limit snipers with rulz or do we use insane limits to do this. If we do use this code with rulz, i assume we can just put all the rules in a .txt file on the game server procon layer correct?
    Its short for Durango Dave
    Courage is being scared to death but saddling up anyway because doing nothing is simply NOT an option.

  4. #284
    Is it possible to adapt this sniper limit to ignore Gun Master gametype?

    Its a pain when a preset is active that has a sniper rifle in it.

    many thanks

  5. #285
    Senior Member
    Join Date
    Apr 2013
    Location
    Russia
    Posts
    237
    Quote Originally Posted by Kal-El View Post
    Is it possible to adapt this sniper limit to ignore Gun Master gametype?

    Its a pain when a preset is active that has a sniper rifle in it.

    many thanks
    Code:
    On Kill;Not MapMode GunMaster;Damage SniperRifle;
    On Kill;Not MapMode GunMaster;Damage DMR;

  6. #286
    Quote Originally Posted by Chilace View Post
    Code:
    On Kill;Not MapMode GunMaster;Damage SniperRifle;
    On Kill;Not MapMode GunMaster;Damage DMR;
    I have put it after every "On Kill" command and will see how it goes

    ################################################## ##
    #sniper limit by tarreltje V2.3 - tweaked by Bambam
    # Slot is reserved by SniperRifle kill
    # Slot is lost by non-SniperRifle/Handgun kill
    # Max # snipers is set in %server_sniperlimit% var
    ################################################## ##

    # DEBUG
    On Kill;Not MapMode GunMaster;Log %p% killed %v% with %d% %wk%
    On Spawn;Log %p% spawned on %ptk%

    # SET THE MAX # OF SNIPERS HERE:
    On Kill;Not MapMode GunMaster;ServerFirst;Set %server_sniperlimit% 2
    On Say;ServerFirst;Set %server_sniperlimit% 2

    # SNIPER LOG MESSAGES
    On Spawn;If %server_sl_sniper[%p%]% == 1;Log Sniper %pt% %p% re-spawned. %server_sl_total[%ptk%]% snipers on team %ptk%
    On Kill;Not MapMode GunMaster;If %server_sl_sniper[%v%]% == 1;Log Sniper %vtk% %v% killed. %server_sl_total[%vtk%]% snipers on team %vtk%

    # SNIPER KILL CHECKS either over limit (so kill), existing sniper (do nothing), new sniper (reserve slot)
    On Kill;Not MapMode GunMaster;Damage SniperRifle;
    If %server_sl_total[%ptk%]% >= %server_sniperlimit%;If %server_sl_setsniper[%p%]% == 0;if %server_sl_sniper[%p%]% == 0;TeamSay %p% killed by SNIPER LIMIT for %pt%;Log Sniper Limit max %server_sniperlimit% snipers each team !!! (now Kill %p%);Kill
    If %server_sl_sniper[%p%]% == 1;Log %ptk% %p% still a sniper, %server_sl_total[%ptk%]% snipers on team %ptk%
    If %server_sl_sniper[%p%]% == 0;Incr %server_sl_total[%ptk%]%;Set %server_sl_sniper[%p%]% 1;Set %server_sl_x% %server_sl_total[%ptk%]%;Set %server_sl_snipername[%ptk%][%server_sl_x%]% %p%;PlayerSay %p% has SNIPER slot on %pt% %server_sl_total[%ptk%]%/%server_sniperlimit%;Log %ptk% %p% is new sniper, %server_sl_total[%ptk%]%/%server_sniperlimit% snipers on team %ptk%

    # SNIPER KILL CHECKS either over limit (so kill), existing sniper (do nothing), new sniper (reserve slot)
    On Kill;Not MapMode GunMaster;Damage DMR;
    If %server_sl_total[%ptk%]% >= %server_sniperlimit%;If %server_sl_setsniper[%p%]% == 0;if %server_sl_sniper[%p%]% == 0;PlayerSay %p% killed by SNIPER LIMIT for %pt%;Log Sniper Limit max %server_sniperlimit% snipers each team !!! (now Kill %p%);Kill
    If %server_sl_sniper[%p%]% == 1;Log %ptk% %p% still a sniper, %server_sl_total[%ptk%]% snipers on team %ptk%
    If %server_sl_sniper[%p%]% == 0;Incr %server_sl_total[%ptk%]%;Set %server_sl_sniper[%p%]% 1;Set %server_sl_x% %server_sl_total[%ptk%]%;Set %server_sl_snipername[%ptk%][%server_sl_x%]% %p%;PlayerSay %p% has SNIPER slot on %pt% %server_sl_total[%ptk%]%/%server_sniperlimit%;Log %ptk% %p% is new sniper, %server_sl_total[%ptk%]%/%server_sniperlimit% snipers on team %ptk%

    # SNIPER KILL CHECKS either over limit (so kill), existing sniper (do nothing), new sniper (reserve slot)
    On Kill;Not MapMode GunMaster;Weapon U_Scout;Not Damage SniperRifle;
    If %server_sl_total[%ptk%]% >= %server_sniperlimit%;If %server_sl_setsniper[%p%]% == 0;if %server_sl_sniper[%p%]% == 0;TeamSay %p% killed by SNIPER LIMIT for %pt%;Log Sniper Limit max %server_sniperlimit% snipers each team !!! (now Kill %p%);Kill
    If %server_sl_sniper[%p%]% == 1;Log %ptk% %p% still a sniper, %server_sl_total[%ptk%]% snipers on team %ptk%
    If %server_sl_sniper[%p%]% == 0;Incr %server_sl_total[%ptk%]%;Set %server_sl_sniper[%p%]% 1;Set %server_sl_x% %server_sl_total[%ptk%]%;Set %server_sl_snipername[%ptk%][%server_sl_x%]% %p%;PlayerSay %p% has SNIPER slot on %pt% %server_sl_total[%ptk%]%/%server_sniperlimit%;Log %ptk% %p% is new sniper, %server_sl_total[%ptk%]%/%server_sniperlimit% snipers on team %ptk%

    # FREE UP SNIPER SLOT IF SNIPER HAS NON-SNIPER KILL OR SNIPER LEAVES
    On Kill;Not MapMode GunMaster;Not Damage SniperRifle;Not Damage DMR;Not Damage Handgun;Not Weapon U_Scout;Not Weapon Melee;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay %pt% %p% gave up SNIPER slot (used %w%);Log Ex-sniper %p% used %d% %wk%, %server_sl_total[%ptk%]% snipers on team %ptk%
    On Leave;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay %pt% %p% gave up SNIPER slot (left server);Log Sniper %pt% %p% left server. %server_sl_total[%ptk%]% snipers on team %ptk%

    # !snipers / !sniperx / !setsniper INFO MESSAGES

    #!snipers tells you the current count for your team and sniper player names
    On Say;Text !snipers;
    PlayerSay Sniper limit: Reserve slot with sniper kill, until non-sniper/handgun/knife kill.
    If %server_sl_total[%ptk%]% == 0;PlayerSay %pt% 0/%server_sniperlimit% SNIPERS on team %pt%
    If %server_sl_total[%ptk%]% > 0;PlayerSay %pt% SNIPER[1/%server_sniperlimit%] is %server_sl_snipername[%ptk%][1]%
    If %server_sl_total[%ptk%]% > 1;PlayerSay %pt% SNIPER[2/%server_sniperlimit%] is %server_sl_snipername[%ptk%][2]%
    If %server_sl_total[%ptk%]% > 2;PlayerSay %pt% SNIPER[3/%server_sniperlimit%] is %server_sl_snipername[%ptk%][3]%
    If %server_sl_total[%ptk%]% > 3;PlayerSay %pt% SNIPER[4/%server_sniperlimit%] is %server_sl_snipername[%ptk%][4]%
    If %server_sl_total[%ptk%]% > 4;PlayerSay %pt% SNIPER[5/%server_sniperlimit%] is %server_sl_snipername[%ptk%][5]%

    #!sniperx just gives the sniper counts for both teams
    On Say;Text !sniperx;
    PlayerSay SNIPERS: Team 1: %server_sl_total[1]%/%server_sniperlimit%, Team 2: %server_sl_total[2]%/%server_sniperlimit%

    #!setsniper <name-substring> is admin-only command to allocate a sniper slot to player. E.g. "!setsniper bam"
    On Say;Admin;Text !setsniper;TargetPlayer;Set %server_sl_setsniper[%t%]% 1;PlayerSay %t% guaranteed a SNIPER slot until round end

  7. #287
    Senior Member
    Join Date
    Oct 2014
    Location
    New Mexico
    Posts
    116
    I copied the code in the first post here (for both types) into my rulez array and then joined as sniper and nothing happened, no message or anything. I did restart the server (layer) afterwords. Did i not do this correct?

    UPDATE: i stand corrected, had someone join the server with me and it is working just fine... thanks so much
    Last edited by durangod; 18-02-2016 at 19:27.
    Its short for Durango Dave
    Courage is being scared to death but saddling up anyway because doing nothing is simply NOT an option.

  8. #288
    Code:
    # SET THE MAX # OF SNIPERS HERE:
    On Kill;ServerFirst;Set %server_sniperlimit% 4
    On Say;ServerFirst;Set %server_sniperlimit% 4
    
    # SET THE MAX # OF M224 HERE:
    On Kill;ServerFirst;Set %server_M224limit% 3
    On Say;ServerFirst;Set %server_M224limit% 3
    
    # SET THE MAX # OF Shotgun HERE:
    On Kill;ServerFirst;Set %server_sglimit% 3
    On Say;ServerFirst;Set %server_sglimit% 3
    
    # SET Server Rule Here
    On Say;Text !rules,!rule,!r,!RULES,!RULE,!R;
    	If %server_sniperlimit% != 0;PlayerSay 狙擊手限制(Sniper Limit) : %server_sniperlimit%
    	If %server_sglimit% != 0;PlayerSay 散彈槍限制(Shotgun Limit) : %server_sglimit%
    	If %server_M224limit% != 0;PlayerSay 迫擊炮限制(M224 Limit) : %server_M224limit%
    	
    ################Sniper
    # SNIPER KILL CHECKS either over limit (so kill), existing sniper (do nothing), new sniper (reserve slot)
    On Kill;Damage SniperRifle;If %server_sniperlimit% != 0;
        If %server_sl_total[%ptk%]% >= %server_sniperlimit%;If %server_sl_setsniper[%p%]% == 0;if %server_sl_sniper[%p%]% == 0;Kill;PlayerYell 您已經超過狙擊手限制(You Killed by Sniper Limited)
        If %server_sl_sniper[%p%]% == 0;Incr %server_sl_total[%ptk%]%;Set %server_sl_sniper[%p%]% 1;Set %server_sl_x% %server_sl_total[%ptk%]%;Set %server_sl_snipername[%ptk%][%server_sl_x%]% %p%;TeamSay %p% 持有本隊狙擊槍位(Get a sniper slot) %server_sl_total[%ptk%]%/%server_sniperlimit%;
    
    # SNIPER KILL CHECKS either over limit (so kill), existing sniper (do nothing), new sniper (reserve slot)
    On Kill;Damage DMR;If %server_sniperlimit% != 0;
        If %server_sl_total[%ptk%]% >= %server_sniperlimit%;If %server_sl_setsniper[%p%]% == 0;if %server_sl_sniper[%p%]% == 0;Kill;PlayerYell 您已經超過狙擊手限制(You Killed by Sniper Limited)
        If %server_sl_sniper[%p%]% == 0;Incr %server_sl_total[%ptk%]%;Set %server_sl_sniper[%p%]% 1;Set %server_sl_x% %server_sl_total[%ptk%]%;Set %server_sl_snipername[%ptk%][%server_sl_x%]% %p%;TeamSay %p% 持有本隊狙擊槍位(Get a sniper slot) %server_sl_total[%ptk%]%/%server_sniperlimit%;
    
    # SNIPER KILL CHECKS either over limit (so kill), existing sniper (do nothing), new sniper (reserve slot)
    On Kill;Weapon U_Scout;Not Damage SniperRifle;If %server_sniperlimit% != 0;
        If %server_sl_total[%ptk%]% >= %server_sniperlimit%;If %server_sl_setsniper[%p%]% == 0;if %server_sl_sniper[%p%]% == 0;Kill;PlayerYell 您已經超過狙擊手限制(You Killed by Sniper Limited)
        If %server_sl_sniper[%p%]% == 0;Incr %server_sl_total[%ptk%]%;Set %server_sl_sniper[%p%]% 1;Set %server_sl_x% %server_sl_total[%ptk%]%;Set %server_sl_snipername[%ptk%][%server_sl_x%]% %p%;TeamSay %p% 持有本隊狙擊槍位(Get a sniper slot) %server_sl_total[%ptk%]%/%server_sniperlimit%;
    
    # FREE UP SNIPER SLOT IF SNIPER HAS NON-SNIPER KILL OR SNIPER LEAVES    
    On Kill;Not Damage SniperRifle;Not Damage DMR;Not Damage Handgun;Not Weapon U_Scout;Not Weapon Melee;Not Damage Explosive;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay %p% 放棄本隊狙擊槍槍位(Give up sniper slot);
    On Leave;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay %p% 放棄本隊狙擊槍位(Give up sniper slot);
    
    ################M224
    # M224 KILL CHECKS either over limit (so kill), existing M224 (do nothing), new M224 (reserve slot)
    On Kill;Weapon M224 U_M224;If %server_M224limit% != 0;
        If %server_m224_total[%ptk%]% >= %server_M224limit%;If %server_sl_setM224[%p%]% == 0;if %server_sl_M224[%p%]% == 0;Kill;PlayerYell 您已經超過迫擊炮限制(You Killed by M224 Limited)
        If %server_sl_M224[%p%]% == 0;Incr %server_m224_total[%ptk%]%;Set %server_sl_M224[%p%]% 1;Set %server_sl_x% %server_m224_total[%ptk%]%;Set %server_sl_M224name[%ptk%][%server_sl_x%]% %p%;TeamSay %p% 持有本隊迫擊炮位(Get a M224 slot) %server_m224_total[%ptk%]%/%server_M224limit%;
    	
    # FREE UP M224 SLOT IF M224 HAS NON-M224 KILL OR M224 LEAVES
    On Kill;Not Weapon M224 U_M224;Not KIT Support;Not Damage Handgun;Not Weapon Melee;Not Damage Explosive;If %server_sl_M224[%p%]% == 1;Set %server_sl_M224[%p%]% 0;Decr %server_m224_total[%ptk%]%;TeamSay %p% 放棄了迫擊炮位(Give up M224 slot);
    On Leave;If %server_sl_M224[%p%]% == 1;Set %server_sl_M224[%p%]% 0;Decr %server_m224_total[%ptk%]%;TeamSay %p% 放棄了迫擊炮位(Give up M224 slot);
    
    ################Shotgun
    # Shotgun KILL CHECKS either over limit (so kill), existing Shotgun (do nothing), new Shotgun (reserve slot)
    On Kill;Damage Shotgun;If %server_sglimit% != 0;
        If %server_sg_total[%ptk%]% >= %server_sglimit%;If %server_sl_setsg[%p%]% == 0;if %server_sl_Sg[%p%]% == 0;Kill;PlayerYell 您已經您已經超過散彈槍限制(You Killed by Shotgun Limited)
        If %server_sl_Sg[%p%]% == 0;Incr %server_sg_total[%ptk%]%;Set %server_sl_Sg[%p%]% 1;Set %server_sl_x% %server_sg_total[%ptk%]%;Set %server_sl_Sgname[%ptk%][%server_sl_x%]% %p%;TeamSay %p% 持有本隊散彈槍位(Get a Shotgun slot) %server_sg_total[%ptk%]%/%server_sglimit%;
    
    # FREE UP Shotgun SLOT IF Shotgun HAS NON-Shotgun KILL OR Shotgun LEAVES    
    On Kill;Not Damage Shotgun;Not Damage Handgun;Not Weapon Melee;Not Damage Explosive; If %server_sl_Sg[%p%]% == 1;Set %server_sl_Sg[%p%]% 0;Decr %server_sg_total[%ptk%]%;TeamSay %p% 放棄了散彈槍位(Give up Shotgun slot);
    On Leave;If %server_sl_Sg[%p%]% == 1;Set %server_sl_Sg[%p%]% 0;Decr %server_sg_total[%ptk%]%;TeamSay %p% 放棄了散彈槍位(Give up Shotgun slot);
    
    ##########Text !s to Check
    On Say;Text !sniper,!s,!SNIPER,!S;
    	If %server_sniperlimit% != 0;PlayerSay 狙擊手(Sniper): Team 1: %server_sl_total[1]%/%server_sniperlimit%, Team 2: %server_sl_total[2]%/%server_sniperlimit%
    	If %server_sglimit% != 0;PlayerSay 散彈槍(Shotgun): Team 1: %server_sg_total[1]%/%server_sglimit%, Team 2: %server_sg_total[2]%/%server_sglimit%
    	If %server_M224limit% != 0;PlayerSay 迫擊炮(M224): Team 1: %server_m224_total[1]%/%server_M224limit%, Team 2: %server_m224_total[2]%/%server_M224limit%
    	PlayerSay 你在 %ptk% 隊, You are in Team %ptk%
    	
    #########################################END###########################################
    This is my code, Can be limited to Sniper, Shotgun, M224, Can work properly.

    But I need VIP can be unrestricted, how can I change? May I ask someone to tell me?

    Thank you for your patience!

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •