Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Senior Member
    Join Date
    Jul 2014
    Location
    Alabama
    Posts
    253

    Shotgun Limit - Locker

    Can someone please guide me to the correct code to limit ALL shotguns for MP_Prison only please?

    I have read through so many threads and cannot seem to find it.

    Thanks,

    ~ Mamba

  2. #2
    Senior Member
    Join Date
    Oct 2015
    Location
    Germany
    Posts
    276
    You want to allow shotguns with shotgun limit?

    With this code you have a shotgun limit only for locker map. It works with shotgun slots, 2 each team (you can change the # of slots). After a shotgun kill the player will get a shotgun slot. If all shotgun slots are in use, the player will be killed with info message.

    INSTALLATION:
    Put the code in proconrulz

    HOW TO USE:
    It works automatically.
    Type !shotgun for check the shotgun slots

    CODE FOR PROCON
    Code:
    # Shotgun Limit (2 pro Team)    ##########################
    # IMPORTANT: HERE YOU CAN SET THE # OF SHOTGUN SLOT EACH TEAM:        #######
    On Spawn;Map MP_Prison;PlayerFirst; Set %shotgunlimit% 2
    On Say;Map MP_Prison;PlayerFirst; Set %shotgunlimit% 2
    
    # KILL CHECK - RESERVE SHOTGUN-SLOT AFTER SHOTGUN KILL - NO FREE SLOT THAN KILL + MESSAGE        #######
    On Kill;Damage Shotgun;Map MP_Prison;
        If %server_global_shotguns[%ptk%]% >= %shotgunlimit%; If %server_global_playershotgunstatus[%p%][%ptk%]% != 1; TeamSay SHOTGUN-LIMIT: %p% was KILLED by shotgun limit (max %shotgunlimit% shotguns each team). Type !shotgun; PlayerYell KILLED by shotgun limit; Kill 100
        If %server_global_shotguns[%ptk%]% < %shotgunlimit%; If %server_global_playershotgunstatus[%p%][%ptk%]% != 1; Set %server_global_playershotgunstatus[%p%][%ptk%]% 1; Incr %server_global_shotguns[%ptk%]%; TeamSay SHOTGUN-LIMIT: %p% have a shotgun slot (%server_global_shotguns[%ptk%]%/%shotgunlimit%); PlayerSay SHOTGUN-LIMIT: Allowed weapons: Shotgun, Pistol, Nades, Knife; PlayerYell YOU HAVE A SHOTGUN SLOT
    
    # MAKE SHOTGUN-SLOT FREE AFTER NO SHOTGUN KILL - (allowed kills with shotgun slot: Shotgun, Pistole, Nades, Knife, Vehicles...)        #######
    On Kill; Not Damage Shotgun;Not Damage Explosive;Not Damage Handgun;Not Damage Melee;Not Damage VehicleWater;Not Damage VehicleAir;Not Damage VehicleStationary;Not Damage VehiclePersonal;Not Damage VehicleTransport;Not Damage VehicleLight;Not Damage VehicleHeavy; Not Weapon U_M67,U_Grenade_RGO,U_V40,U_M34,DamageArea,SoldierCollision,Death,RoadKill,VehicleUpsideDown,Suicide,U_BallisticShield,U_SUAV; ;Map MP_Prison; If %server_global_playershotgunstatus[%p%][%ptk%]% == 1; Set %server_global_playershotgunstatus[%p%][%ptk%]% 0; Decr %server_global_shotguns[%ptk%]%; TeamSay SHOTGUN-LIMIT: %p% gave up his shotgun slot (%server_global_shotguns[%ptk%]%/%shotgunlimit%); Log DEBUG SHOTGUN-LIMIT: Player %p% killed %v% with WeaponID %wk% (lost shotgun slot); PlayerYell You lost your shotgun slot
    On Leave;Map MP_Prison; If %server_global_playershotgunstatus[%p%][%ptk%]% == 1; Set %server_global_playershotgunstatus[%p%][%ptk%]% 0; Decr %server_global_shotguns[%ptk%]%; TeamSay SHOTGUN-LIMIT: %p% gave up his shotgun slot (%server_global_shotguns[%ptk%]%/%shotgunlimit%)
    
    # SERVER LEAVE + TEAM SWITCH CHECK        #######
    On Spawn;Map MP_Prison;
        if %ptk% != 0; if %server_global_playershotgunstatus[%p%][0]% == 1; Set %server_global_playershotgunstatus[%p%][0]% 0; PlayerSay SHOTGUN-LIMIT: You lost your shotgun slot (Team-Switch); PlayerYell You lost your shotgun slot
        if %ptk% != 1; if %server_global_playershotgunstatus[%p%][1]% == 1; Set %server_global_playershotgunstatus[%p%][1]% 0; PlayerSay SHOTGUN-LIMIT: You lost your shotgun slot (Team-Switch); PlayerYell You lost your shotgun slot
        if %ptk% != 2; if %server_global_playershotgunstatus[%p%][2]% == 1; Set %server_global_playershotgunstatus[%p%][2]% 0; PlayerSay SHOTGUN-LIMIT: You lost your shotgun slot (Team-Switch); PlayerYell You lost your shotgun slot
        if %ptk% != 3; if %server_global_playershotgunstatus[%p%][3]% == 1; Set %server_global_playershotgunstatus[%p%][3]% 0; PlayerSay SHOTGUN-LIMIT: You lost your shotgun slot (Team-Switch); PlayerYell You lost your shotgun slot
    On Leave;Map MP_Prison; If %server_global_playershotgunstatus[%p%][%ptk%]% == 1; Set %server_global_playershotgunstatus[%p%][%ptk%]% 0; Decr %server_global_shotguns[%ptk%]%; TeamSay SHOTGUN-LIMIT: %p% gave up his shotgun slot (%server_global_shotguns[%ptk%]%/%shotgunlimit%)
    
    # !shotgun IN-GAME-CHAT COMMAND        #######
    On Say;Text !shotgun; TeamSay SHOTGUN-LIMIT: Shotguns are limited on MAP LOCKER.; Map MP_Prison; TeamSay SHOTGUN-LIMIT: Currently: %server_global_shotguns[%ptk%]% of %shotgunlimit% for your team; If %server_global_playershotgunstatus[%p%][%ptk%]% == 1; PlayerSay SHOTGUN-LIMIT: You have a shotgun slot! Allowed weapons: Shotgun, Pistol, Nades, Knife

  3. #3
    Senior Member
    Join Date
    Jul 2014
    Location
    Alabama
    Posts
    253
    Sorry if I confused you, Sir.

    We would like to not allow shotguns on Locker and Metro only.

    We want this to do the following if possible;
    - Announce no shotguns on Metro / Locker
    - Kill the player if they kill someone using shotgun.
    - kick is they use shotgun again.
    - yell to them that shotguns are not allowed on metro or locker.

    And thank you for taking your time out to help me.
    Last edited by Mamba334; 28-01-2016 at 19:42.

  4. #4
    Senior Member
    Join Date
    Oct 2015
    Location
    Germany
    Posts
    276
    ok! this is easy!!

    try this code in proconrulz. no shotguns on locker/metro.

    Code:
    On Spawn;PlayerFirst;Map XP0_Metro,MP_Prison; PlayerYell Shotguns are not allowed on Metro/Locker!
    On Kill;Damage Shotgun;Map XP0_Metro,MP_Prison;PlayerCount 2;Say %p% was KICKED by admin for using a %w%;Kick No shotguns! Read the rules
    On Kill;Damage Shotgun;Map XP0_Metro,MP_Prison; PlayerYell Shotguns are not allowed! Next time KICK;Say %p% was KILLED by admin for using a %w%; Kill 100
    Last edited by maxdralle; 28-01-2016 at 20:02.

  5. #5
    Senior Member
    Join Date
    Jul 2014
    Location
    Alabama
    Posts
    253

    Quote Originally Posted by maxdralle View Post
    ok! this is easy!!

    try this code in proconrulz. no shotguns on locker/metro.

    Code:
    On Spawn;PlayerFirst;Map XP0_Metro,MP_Prison; PlayerYell Shotguns are not allowed on Metro/Locker!
    On Kill;Damage Shotgun;Map XP0_Metro,MP_Prison;PlayerCount 2;Say %p% was KICKED by admin for using a %w%;Kick No shotguns! Read the rules
    On Kill;Damage Shotgun;Map XP0_Metro,MP_Prison; PlayerYell Shotguns are not allowed! Next time KICK;Say %p% was KILLED by admin for using a %w%; Kill 100
    Thanks!

  6. #6
    Junior Member
    Join Date
    Jul 2016
    Location
    Malaysia (Corrupted country but i manage to live)
    Posts
    29
    i dont get it . where should i put this code on ? . and i wanted it to be in all maps not only MP_Prison but all maps

  7. #7
    To use the above proconrulz code for all maps, delete this part from every line in that code: "Map XP0_Metro,MP_Prison;"

    Then put the code in Rules section (click [...] on the right side which will open up a text area for codes.)

    Paste the code at the very top on a new line

  8. #8
    Senior Member
    Join Date
    Jul 2014
    Location
    Alabama
    Posts
    253
    https://forum.myrcon.com/showthread....ght=proconrulz

    If you have Proconrulz, just go over to rules as stated above by Rock, then just add that code minus the top line, and that should solve your issues. Works well for me. I have mine set to kill first and it says to that member not to use shotguns, second time it kills again and reminds them of the limit, 3rd time it kicks.

  9. #9
    Senior Member
    Join Date
    Apr 2013
    Location
    Russia
    Posts
    245
    Quote Originally Posted by AlcaGamerZ View Post
    i dont get it . where should i put this code on ? . and i wanted it to be in all maps not only MP_Prison but all maps
    There is another way:
    https://forum.myrcon.com/showthread....miter-v1-0-0-0

  10. #10
    Quote Originally Posted by maxdralle View Post
    You want to allow shotguns with shotgun limit?

    With this code you have a shotgun limit only for locker map. It works with shotgun slots, 2 each team (you can change the # of slots). After a shotgun kill the player will get a shotgun slot. If all shotgun slots are in use, the player will be killed with info message.

    INSTALLATION:
    Put the code in proconrulz

    HOW TO USE:
    It works automatically.
    Type !shotgun for check the shotgun slots

    CODE FOR PROCON
    Code:
    # Shotgun Limit (2 pro Team)    ##########################
    # IMPORTANT: HERE YOU CAN SET THE # OF SHOTGUN SLOT EACH TEAM:        #######
    On Spawn;Map MP_Prison;PlayerFirst; Set %shotgunlimit% 2
    On Say;Map MP_Prison;PlayerFirst; Set %shotgunlimit% 2
    
    # KILL CHECK - RESERVE SHOTGUN-SLOT AFTER SHOTGUN KILL - NO FREE SLOT THAN KILL + MESSAGE        #######
    On Kill;Damage Shotgun;Map MP_Prison;
        If %server_global_shotguns[%ptk%]% >= %shotgunlimit%; If %server_global_playershotgunstatus[%p%][%ptk%]% != 1; TeamSay SHOTGUN-LIMIT: %p% was KILLED by shotgun limit (max %shotgunlimit% shotguns each team). Type !shotgun; PlayerYell KILLED by shotgun limit; Kill 100
        If %server_global_shotguns[%ptk%]% < %shotgunlimit%; If %server_global_playershotgunstatus[%p%][%ptk%]% != 1; Set %server_global_playershotgunstatus[%p%][%ptk%]% 1; Incr %server_global_shotguns[%ptk%]%; TeamSay SHOTGUN-LIMIT: %p% have a shotgun slot (%server_global_shotguns[%ptk%]%/%shotgunlimit%); PlayerSay SHOTGUN-LIMIT: Allowed weapons: Shotgun, Pistol, Nades, Knife; PlayerYell YOU HAVE A SHOTGUN SLOT
    
    # MAKE SHOTGUN-SLOT FREE AFTER NO SHOTGUN KILL - (allowed kills with shotgun slot: Shotgun, Pistole, Nades, Knife, Vehicles...)        #######
    On Kill; Not Damage Shotgun;Not Damage Explosive;Not Damage Handgun;Not Damage Melee;Not Damage VehicleWater;Not Damage VehicleAir;Not Damage VehicleStationary;Not Damage VehiclePersonal;Not Damage VehicleTransport;Not Damage VehicleLight;Not Damage VehicleHeavy; Not Weapon U_M67,U_Grenade_RGO,U_V40,U_M34,DamageArea,SoldierCollision,Death,RoadKill,VehicleUpsideDown,Suicide,U_BallisticShield,U_SUAV; ;Map MP_Prison; If %server_global_playershotgunstatus[%p%][%ptk%]% == 1; Set %server_global_playershotgunstatus[%p%][%ptk%]% 0; Decr %server_global_shotguns[%ptk%]%; TeamSay SHOTGUN-LIMIT: %p% gave up his shotgun slot (%server_global_shotguns[%ptk%]%/%shotgunlimit%); Log DEBUG SHOTGUN-LIMIT: Player %p% killed %v% with WeaponID %wk% (lost shotgun slot); PlayerYell You lost your shotgun slot
    On Leave;Map MP_Prison; If %server_global_playershotgunstatus[%p%][%ptk%]% == 1; Set %server_global_playershotgunstatus[%p%][%ptk%]% 0; Decr %server_global_shotguns[%ptk%]%; TeamSay SHOTGUN-LIMIT: %p% gave up his shotgun slot (%server_global_shotguns[%ptk%]%/%shotgunlimit%)
    
    # SERVER LEAVE + TEAM SWITCH CHECK        #######
    On Spawn;Map MP_Prison;
        if %ptk% != 0; if %server_global_playershotgunstatus[%p%][0]% == 1; Set %server_global_playershotgunstatus[%p%][0]% 0; PlayerSay SHOTGUN-LIMIT: You lost your shotgun slot (Team-Switch); PlayerYell You lost your shotgun slot
        if %ptk% != 1; if %server_global_playershotgunstatus[%p%][1]% == 1; Set %server_global_playershotgunstatus[%p%][1]% 0; PlayerSay SHOTGUN-LIMIT: You lost your shotgun slot (Team-Switch); PlayerYell You lost your shotgun slot
        if %ptk% != 2; if %server_global_playershotgunstatus[%p%][2]% == 1; Set %server_global_playershotgunstatus[%p%][2]% 0; PlayerSay SHOTGUN-LIMIT: You lost your shotgun slot (Team-Switch); PlayerYell You lost your shotgun slot
        if %ptk% != 3; if %server_global_playershotgunstatus[%p%][3]% == 1; Set %server_global_playershotgunstatus[%p%][3]% 0; PlayerSay SHOTGUN-LIMIT: You lost your shotgun slot (Team-Switch); PlayerYell You lost your shotgun slot
    On Leave;Map MP_Prison; If %server_global_playershotgunstatus[%p%][%ptk%]% == 1; Set %server_global_playershotgunstatus[%p%][%ptk%]% 0; Decr %server_global_shotguns[%ptk%]%; TeamSay SHOTGUN-LIMIT: %p% gave up his shotgun slot (%server_global_shotguns[%ptk%]%/%shotgunlimit%)
    
    # !shotgun IN-GAME-CHAT COMMAND        #######
    On Say;Text !shotgun; TeamSay SHOTGUN-LIMIT: Shotguns are limited on MAP LOCKER.; Map MP_Prison; TeamSay SHOTGUN-LIMIT: Currently: %server_global_shotguns[%ptk%]% of %shotgunlimit% for your team; If %server_global_playershotgunstatus[%p%][%ptk%]% == 1; PlayerSay SHOTGUN-LIMIT: You have a shotgun slot! Allowed weapons: Shotgun, Pistol, Nades, Knife

    @maxdralle

    can you tell me the way it works on all maps? With 2x Kill, 1x TBAN for 20min.

    Would that work well with Insane Limits?

    THX [email protected]

 

 

Posting Permissions

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