Page 1 of 3 123 LastLast
Results 1 to 10 of 30
  1. #1

    Lightbulb ProconRulz: Battlefield 4 Pistols and Melee Script

    Tested on ProconRulz 44j.1
    Tested on Team Deathmatch - 32 slots

    This script is based on example scripts. It's been fleshed out to be more informative in-game and handle automated messages and administration.

    Credit:
    bambam - for supplying example scripts.
    ColColonCleaner/LumPenPacK - 6495-Weapon-Codes
    If I missed anyone here, let me know.

    How does it work and what does it do?
    • Offense 1 = Kill, Offense 2 = Kill, Offense 3 = Kick, Offense 4 = Temporary Ban (15 minutes)
    • When the player joins the round they'll receive a Yell message "Player, this server is Pistol and Melee only (Defib,Repair,Knife,Pistol)!"
    • Players can type !allowed or !weapons in chat for a list of allowed weapons.
    • Players get killed on an offense and receive a Say and Yell message as to why they got killed.
    • Players receive a yell message after offense 1 and 2 on the next Spawn after the offense.
    • Players receive a 15 minute temporary ban when they reconnect and commit another offense (or when committing a multikill with a grenade for example).
    • Allowed weapons: FLASHBANG, DEFIBRILLATOR, REPAIR TOOL, KNIFES, PISTOLS


    Console output:




    Explosives immediate KICKS


    (Private) Chat output (PlayerYell on next Spawn after offense):



    Code:
    # ColonelSeven's Pistol and Melee for Battlefield 4 v0.5
    # Information Shouts
    On Spawn;PlayerFirst;PlayerYell %p%, this server is Pistol and Melee only (Defib,Repair,Knife,Pistol)!;PlayerSay %p%, type !weapons and !commands in chat for more info!
    On Say;Text !allowed,!weapons;PlayerSay ::: ALLOWED: FLASHBANG,DEFIBRILLATOR,REPAIR TOOL,KNIFE,PISTOLS;PlayerSay ::: TAKE NOTE: Shorty 12G is classified as a shotgun;PlayerSay ::: TAKE NOTE: ALL Explosives are instant kick!
    On Say;Text !commands;PlayerSay ::: COMMANDS: !weapons - !allowed
    
    # Player Total Kicks and Bans check
    On Join;If %ini_kickban_tbans[%p%]% == 3;TempBan 86400 %p%, you've been temp. banned 3 times. Ban for 24 hours.;Set %ini_kickban_tbans[%p%]% 0
    On Join;If %ini_kickban_kicks[%p%]% == 15;TempBan 86400 %p%, you've been kicked 15 times. Ban for 24 hours.;Set %ini_kickban_kicks[%p%]% 0
    
    # Original by bambam - Modified by ColonelSeven
    # Explosives check first (flashbang excl. just in case)
    On Kill;Not Weapon U_Flashbang;Damage Explosive;Log ^2EXPLOSIVE: ^1%p% ^0was KICKED for using a ^1%w%;Incr %ini_kickban_kicks[%p%]%;Say %p% was KICKED for using a %w%;Kick %p% Melee and Pistols only! You used a %w%.
    On Kill;Not Weapon U_Flashbang;Damage ProjectileExplosive;Log ^2EXPLOSIVE: ^1%p% ^0was KICKED for using a ^1%w%;Incr %ini_kickban_kicks[%p%]%;Say %p% was KICKED for using a %w% ;Kick %p% Melee and Pistols only! You used a %w%.
    # Weapons check second
    On Kill;Not Weapon U_Flashbang;Not Weapon U_Defib; Not Weapon U_Repairtool;Not Weapon Melee;Not Damage Handgun;PlayerCount 3;Log ^1%p% ^0was BANNED for using a ^1%w%;Incr %ini_kickban_tbans[%p%]%;Say %p% was BANNED (15m) for using a %w%;TempBan 900 %p% (15min)  Melee and Pistols only! You used a %w%.
    On Kill;Not Weapon U_Flashbang;Not Weapon U_Defib; Not Weapon U_Repairtool;Not Weapon Melee;Not Damage Handgun;PlayerCount 2;Log ^1%p% ^0was KICKED for using a ^1%w%;Incr %ini_kickban_kicks[%p%]%;Say %p% was KICKED for using a %w% ;Kick %p% Melee and Pistols only! You used a %w%.
    On Kill;Not Weapon U_Flashbang;Not Weapon U_Defib; Not Weapon U_Repairtool;Not Weapon Melee;Not Damage Handgun;PlayerCount 1;Log ^1%p% ^0has ^2%c%/2 ^0offenses (^1%w%^0);Set %warnyell% 2;Say ::: WARNING: %p%, warning %c%/2 for using a %w%;PlayerSay %p%, Melee and Pistols only! You used a %w% (%c%/2);PlayerYell %p%, Melee and Pistols only! You used a %w% (%c%/2);Kill 100
    On Kill;Not Weapon U_Flashbang;Not Weapon U_Defib; Not Weapon U_Repairtool;Not Weapon Melee;Not Damage Handgun;Log ^1%p% ^0has ^2%c%/2 ^0offenses (^1%w%^0);Set %warnyell% 1;Say ::: WARNING: %p%, warning %c%/2 for using a %w%;PlayerSay %p%, Melee and Pistols only! You used a %w% (%c%/2);PlayerYell %p%, Melee and Pistols only! You used a %w% (%c%/2);Kill 100
    
    # Warning Yell On Spawn (after offense 1 and 2)
    On Spawn;If %warnyell% == 2;Log Yell^2 2/2 ^0given to ^1%p%;PlayerYell %p%, you've 2/2 offenses! Next will be a KICK!;Set %warnyell% 0
    On Spawn;If %warnyell% == 1;Log Yell^2 1/2 ^0given to ^1%p%;PlayerYell %p%, you've 1/2 offenses! Pistols and Melee only!;Set %warnyell% 0
    
    # Kill Announcer
    On Kill;Weapon Melee;Say *** %p% grabbed and stabbed %v%!!!
    On Kill;If %wk% contains Defib;Say *** %p% zapped %v% with the Defib!!!
    On Kill;If %wk% contains Repair;Say *** %p% killed %v% with the Repair Tool!!!
    On Kill;If %wk% contains Flashbang;Say *** %p% killed %v% with a FLASHBANG!!!
    
    # FIRSTBLOOD
    On Kill;ServerFirst;Say *** %p% has FIRST BLOOD by killing %v% with a %w%
    Use this script as you see fit.
    Requests? Improvements? Let me know!

    Upcoming:
    • *


    Update to v0.5
    • Added persistent Kick and Ban tracking. Players get Banned for 24 hours after 3 total TempBans or 15 total Kicks

    Update to v0.4
    • Added explosive instant kick (no warning)
    • Added Shorty 12G explanation to !allowed !weapons

    Update v0.1 (Start) to v0.3
    • No log
    Last edited by Sevendot; 16-02-2014 at 19:23. Reason: Update to v0.5

  2. #2
    Thanks so much for the code. Works perfectly on BF4

  3. #3
    Hello,

    for the right to kill with the knife just what is the modification to do?

  4. #4
    Community Contributor
    Join Date
    Nov 2011
    Posts
    2,970
    I see what I think is an issue.
    "PlayerYell %p%, Melee and Pistols only! You used a %w% (%c%/2);Kill 100"
    Dead players can't see yelled messages. That means that they will only see the yelled message for 0.1 seconds and then be killed.
    Many players turn the chat box off, so they don't see the Say messages either.
    I would suggest setting a variable to Yell the message at the next On Spawn after the offense/punishment. That way, they will definitely be informed.

  5. #5
    Senior Member
    Join Date
    Nov 2010
    Location
    United Kingdom
    Posts
    391
    Dead players can't see yelled messages
    they can, im running a "player who killed you" yell message with stats which show you the stats of the person who killed you while your dead..

  6. #6
    How do i set this to work only when a certain round start? Only a map will be this script...

  7. #7

    reaction

    How can i add the new pistols from dragon teeth to this script???

    Now people get kickt and banned from server. Please let me now how to do it???


    Quote Originally Posted by Sevendot View Post
    Tested on ProconRulz 44j.1
    Tested on Team Deathmatch - 32 slots

    This script is based on example scripts. It's been fleshed out to be more informative in-game and handle automated messages and administration.

    Credit:
    bambam - for supplying example scripts.
    ColColonCleaner/LumPenPacK - 6495-Weapon-Codes
    If I missed anyone here, let me know.

    How does it work and what does it do?
    • Offense 1 = Kill, Offense 2 = Kill, Offense 3 = Kick, Offense 4 = Temporary Ban (15 minutes)
    • When the player joins the round they'll receive a Yell message "Player, this server is Pistol and Melee only (Defib,Repair,Knife,Pistol)!"
    • Players can type !allowed or !weapons in chat for a list of allowed weapons.
    • Players get killed on an offense and receive a Say and Yell message as to why they got killed.
    • Players receive a yell message after offense 1 and 2 on the next Spawn after the offense.
    • Players receive a 15 minute temporary ban when they reconnect and commit another offense (or when committing a multikill with a grenade for example).
    • Allowed weapons: FLASHBANG, DEFIBRILLATOR, REPAIR TOOL, KNIFES, PISTOLS


    Console output:




    Explosives immediate KICKS


    (Private) Chat output (PlayerYell on next Spawn after offense):



    Code:
    # ColonelSeven's Pistol and Melee for Battlefield 4 v0.5
    # Information Shouts
    On Spawn;PlayerFirst;PlayerYell %p%, this server is Pistol and Melee only (Defib,Repair,Knife,Pistol)!;PlayerSay %p%, type !weapons and !commands in chat for more info!
    On Say;Text !allowed,!weapons;PlayerSay ::: ALLOWED: FLASHBANG,DEFIBRILLATOR,REPAIR TOOL,KNIFE,PISTOLS;PlayerSay ::: TAKE NOTE: Shorty 12G is classified as a shotgun;PlayerSay ::: TAKE NOTE: ALL Explosives are instant kick!
    On Say;Text !commands;PlayerSay ::: COMMANDS: !weapons - !allowed
    
    # Player Total Kicks and Bans check
    On Join;If %ini_kickban_tbans[%p%]% == 3;TempBan 86400 %p%, you've been temp. banned 3 times. Ban for 24 hours.;Set %ini_kickban_tbans[%p%]% 0
    On Join;If %ini_kickban_kicks[%p%]% == 15;TempBan 86400 %p%, you've been kicked 15 times. Ban for 24 hours.;Set %ini_kickban_kicks[%p%]% 0
    
    # Original by bambam - Modified by ColonelSeven
    # Explosives check first (flashbang excl. just in case)
    On Kill;Not Weapon U_Flashbang;Damage Explosive;Log ^2EXPLOSIVE: ^1%p% ^0was KICKED for using a ^1%w%;Incr %ini_kickban_kicks[%p%]%;Say %p% was KICKED for using a %w%;Kick %p% Melee and Pistols only! You used a %w%.
    On Kill;Not Weapon U_Flashbang;Damage ProjectileExplosive;Log ^2EXPLOSIVE: ^1%p% ^0was KICKED for using a ^1%w%;Incr %ini_kickban_kicks[%p%]%;Say %p% was KICKED for using a %w% ;Kick %p% Melee and Pistols only! You used a %w%.
    # Weapons check second
    On Kill;Not Weapon U_Flashbang;Not Weapon U_Defib; Not Weapon U_Repairtool;Not Weapon Melee;Not Damage Handgun;PlayerCount 3;Log ^1%p% ^0was BANNED for using a ^1%w%;Incr %ini_kickban_tbans[%p%]%;Say %p% was BANNED (15m) for using a %w%;TempBan 900 %p% (15min)  Melee and Pistols only! You used a %w%.
    On Kill;Not Weapon U_Flashbang;Not Weapon U_Defib; Not Weapon U_Repairtool;Not Weapon Melee;Not Damage Handgun;PlayerCount 2;Log ^1%p% ^0was KICKED for using a ^1%w%;Incr %ini_kickban_kicks[%p%]%;Say %p% was KICKED for using a %w% ;Kick %p% Melee and Pistols only! You used a %w%.
    On Kill;Not Weapon U_Flashbang;Not Weapon U_Defib; Not Weapon U_Repairtool;Not Weapon Melee;Not Damage Handgun;PlayerCount 1;Log ^1%p% ^0has ^2%c%/2 ^0offenses (^1%w%^0);Set %warnyell% 2;Say ::: WARNING: %p%, warning %c%/2 for using a %w%;PlayerSay %p%, Melee and Pistols only! You used a %w% (%c%/2);PlayerYell %p%, Melee and Pistols only! You used a %w% (%c%/2);Kill 100
    On Kill;Not Weapon U_Flashbang;Not Weapon U_Defib; Not Weapon U_Repairtool;Not Weapon Melee;Not Damage Handgun;Log ^1%p% ^0has ^2%c%/2 ^0offenses (^1%w%^0);Set %warnyell% 1;Say ::: WARNING: %p%, warning %c%/2 for using a %w%;PlayerSay %p%, Melee and Pistols only! You used a %w% (%c%/2);PlayerYell %p%, Melee and Pistols only! You used a %w% (%c%/2);Kill 100
    
    # Warning Yell On Spawn (after offense 1 and 2)
    On Spawn;If %warnyell% == 2;Log Yell^2 2/2 ^0given to ^1%p%;PlayerYell %p%, you've 2/2 offenses! Next will be a KICK!;Set %warnyell% 0
    On Spawn;If %warnyell% == 1;Log Yell^2 1/2 ^0given to ^1%p%;PlayerYell %p%, you've 1/2 offenses! Pistols and Melee only!;Set %warnyell% 0
    
    # Kill Announcer
    On Kill;Weapon Melee;Say *** %p% grabbed and stabbed %v%!!!
    On Kill;If %wk% contains Defib;Say *** %p% zapped %v% with the Defib!!!
    On Kill;If %wk% contains Repair;Say *** %p% killed %v% with the Repair Tool!!!
    On Kill;If %wk% contains Flashbang;Say *** %p% killed %v% with a FLASHBANG!!!
    
    # FIRSTBLOOD
    On Kill;ServerFirst;Say *** %p% has FIRST BLOOD by killing %v% with a %w%
    Use this script as you see fit.
    Requests? Improvements? Let me know!

    Upcoming:
    • *


    Update to v0.5
    • Added persistent Kick and Ban tracking. Players get Banned for 24 hours after 3 total TempBans or 15 total Kicks

    Update to v0.4
    • Added explosive instant kick (no warning)
    • Added Shorty 12G explanation to !allowed !weapons

    Update v0.1 (Start) to v0.3
    • No log

  8. #8
    Quote Originally Posted by strfighter View Post
    How can i add the new pistols from dragon teeth to this script???

    Now people get kickt and banned from server. Please let me now how to do it???
    *Push*

  9. #9
    The script can't detect the new Dragon's Teeth pistols until the BF4.def file in Procon includes the codings for those. We have to be patient until the Procon Team can update that file, which isn't helped by the lack of detail from DICE about this DLC.

    The only current workaround is for lots of "spam messages" to your server not to use the Dragon's Teeth weapons.

  10. #10
    Thx for Info.

 

 

Tags for this Thread

Posting Permissions

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