Jump to content

ProconRulz V44j1 - weapon limits and other event-triggered admin actions


ColColonCleaner

Recommended Posts

Originally Posted by BuRockK*:

 

Hello guys!

 

I need help :\

 

i want insert a a command to proconruls to show a message every 5 minutes on the chat wimndow

 

example:

 

Join us On TeasmSpeak3 94.250.223.8:15069

 

I want it to show every 5 minutes

 

Is it possible ? and if yes can someone give me the Command for it?

 

Thanks!!!!

Try this.. (NOT tested..)

 

It checks if 5 mins (300 seconds) has passed since last spam (or since round started too) and spams the same msg to every player.

 

Theres no schedule option in ProconRulz so it checks the time when someone joins,leaves,spawns,kills, or says something in chat.

 

EDIT:

Also, you can turn this spam on or off with in-game command !SpamTSinfo

(you need to type the command once to configure the on/off variable)

 

 

Replace the texts in RED to your needs..

 

Code:

On Say;Admin; Text !SpamTSinfo;
    Set %ini_spamTSinfo_msg% <PUT YOUR TEAMSPEAK INFO HERE>;
    Set %ini_spamTSinfo_repeattime% 300;

    if %ini_spamTSinfo_state% == 0; Set %ini_spamTSinfo_state% == on; PlayerSay Spam TeamSpeak Info is now: %ini_spamTSinfo_state%;
    Set %ini_spamTSinfo_nextmsgtime% %seconds% + %ini_spamTSinfo_repeattime%;end

    if %ini_spamTSinfo_state% == off; Set %ini_spamTSinfo_state% == on; PlayerSay Spam TeamSpeak Info is now: %ini_spamTSinfo_state%;
    Set %ini_spamTSinfo_nextmsgtime% %seconds% + %ini_spamTSinfo_repeattime%;end

    if %ini_spamTSinfo_state% == on; Set %ini_spamTSinfo_state% == off; PlayerSay Spam TeamSpeak Info is now: %ini_spamTSinfo_state%;Set %ini_spamTSinfo_nextmsgtime% 0;end

On Round:
    if %ini_spamTSinfo_state% == on;
    Set %ini_spamTSinfo_nextmsgtime% %seconds% + %ini_spamTSinfo_repeattime%

On kill;
    if %ini_spamTSinfo_state% == on;
    if %ini_spamTSinfo_nextmsgtime% != 0;
    if %seconds% >= %ini_spamTSinfo_nextmsgtime%
    Set %ini_spamTSinfo_nextmsgtime% %seconds + %ini_spamTSinfo_repeattime%
    Yell 8 %ini_spamTSinfo_msg%

On Spawn;
    if %ini_spamTSinfo_state% == on;
    if %ini_spamTSinfo_nextmsgtime% != 0;
    if %seconds% >= %ini_spamTSinfo_nextmsgtime%
    Set %ini_spamTSinfo_nextmsgtime% %seconds + %ini_spamTSinfo_repeattime%
    Yell 8 %ini_spamTSinfo_msg%

On Say;
    if %ini_spamTSinfo_state% == on;
    if %ini_spamTSinfo_nextmsgtime% != 0;
    if %seconds% >= %ini_spamTSinfo_nextmsgtime%
    Set %ini_spamTSinfo_nextmsgtime% %seconds + %ini_spamTSinfo_repeattime%
    Yell 8 %ini_spamTSinfo_msg%

On Join;
    if %ini_spamTSinfo_state% == on;
    if %ini_spamTSinfo_nextmsgtime% != 0;
    if %seconds% >= %ini_spamTSinfo_nextmsgtime%
    Set %ini_spamTSinfo_nextmsgtime% %seconds + %ini_spamTSinfo_repeattime%
    Yell 8 %ini_spamTSinfo_msg%

On Leave;
    if %ini_spamTSinfo_state% == on;
    if %ini_spamTSinfo_nextmsgtime% != 0;
    if %seconds% >= %ini_spamTSinfo_nextmsgtime%
    Set %ini_spamTSinfo_nextmsgtime% %seconds + %ini_spamTSinfo_repeattime%
    Yell 8 %ini_spamTSinfo_msg%

On Suicide;
    if %ini_spamTSinfo_state% == on;
    if %ini_spamTSinfo_nextmsgtime% != 0;
    if %seconds% >= %ini_spamTSinfo_nextmsgtime%
    Set %ini_spamTSinfo_nextmsgtime% %seconds + %ini_spamTSinfo_repeattime%
    Yell 8 %ini_spamTSinfo_msg%
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Dete96*:

 

There are only stuff with kill/death, no round score related things :sad:

If it is not necessarily a ProConRulz Rule you're looking for I would recommend this plugin:

 

myrcon.net/.../server-kills

 

Besides "Endround stats" (e.g. highest score) it has several other settings and options that you don't need to use.

 

I hope that helped!

Dete96

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by BuRockK*:

 

There are only stuff with kill/death, no round score related things :sad:

In ProconRulz, you cannot log points gained when another player uses your medkit or ammo box etc. So those points cannot be logged during those times. But you can log a players score when he makes a kill or gets killed, spawns, suicides, etc.

 

I could write a code here that can log players scores (not kill counts), but it wouldnt be accurate when the round ends.

 

As Dete96 said, you can use Server Kills plugin for end of round stats with much more options.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by AlcaGamerZ*:

 

BuRockk , thanks for the shotgunlimit and sniperlimit even tho it doesn't have what i wished for.. , since the code for vip exception couldnot work , then nevermind . however , is there anyone could guide me with Adkats installation ? , when things come to stuff like MySQL etcs i will become confused .

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Chilace*:

 

BuRockk , thanks for the shotgunlimit and sniperlimit even tho it doesn't have what i wished for.. , since the code for vip exception couldnot work , then nevermind . however , is there anyone could guide me with Adkats installation ? , when things come to stuff like MySQL etcs i will become confused .

showthread....ered-Tutorials*

 

As for snipers limit:

1) Switch off "Trace rules" (use it for debug only)

2) Set "Protect these players from Kick or Kill" to "Admins_and_Reserved_Slots"

3) Use a slightly modified code (there are exceptions for some weapons and removed wrong logic code)

Code:

##### SNIPER LIMIT V2.7 BOLT AND DMR (MODIFIED) #####

# SET THE MAX # OF SNIPERS HERE:
On Kill;ServerFirst;Set %server_sniperlimit% 4
On Say;ServerFirst;Set %server_sniperlimit% 4

# CHECK TEAMSWITCH/AUTOBALANCE
On Spawn;If %server_sl_sniper[%p%]% == 1;If %server_sl_team[%p%]% != %ptk%;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total[%server_sl_team[%p%]%]%;Say %p% lost his SNIPER SLOT (autobalance/teamswitch), Team 1: %server_sl_total[1]%/%server_sniperlimit% Team 2: %server_sl_total[2]%/%server_sniperlimit%;PlayerYell %p%, you lost your SNIPER SLOT (autobalance/teamswitch);Log Ex-sniper %p% switched from team %server_sl_team[%p%]% to team %ptk%, Team 1: %server_sl_total[1]% Team 2: %server_sl_total[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;If %server_sl_sniper[%v%]% == 1;Log Sniper %vt% %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 Protected;Not MapMode GunMaster;Damage SniperRifle;Not Weapon U_AMR2,U_AMR2_CQB,U_AMR2_MED,U_M82A3,U_M82A3_CQB,U_M82A3_MED;
If %server_sl_total[%ptk%]% >= %server_sniperlimit%;if %server_sl_sniper[%p%]% == 0;PlayerBoth %p%, you killed by SNIPER LIMIT max %server_sniperlimit%;Log Sniper Limit max %server_sniperlimit% snipers each team !!! (now Kill %p%);Kill 100
If %server_sl_sniper[%p%]% == 1;Log %pt% %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_team[%p%]% %ptk%;TeamSay %p% has a SNIPER SLOT, Your Team: %server_sl_total[%ptk%]%/%server_sniperlimit%;PlayerYell %p%, you have a SNIPER SLOT;Log %pt% %p% is new sniper, %server_sl_total[%ptk%]% snipers on team %ptk%

# SNIPER KILL CHECKS either over limit (so kill), existing sniper (do nothing), new sniper (reserve slot)
On Kill;Not Protected;Not MapMode GunMaster;Damage DMR;
If %server_sl_total[%ptk%]% >= %server_sniperlimit%;if %server_sl_sniper[%p%]% == 0;PlayerBoth %p%, you killed by SNIPER LIMIT max %server_sniperlimit%;Log Sniper Limit max %server_sniperlimit% snipers each team !!! (now Kill %p%);Kill 100
If %server_sl_sniper[%p%]% == 1;Log %pt% %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_team[%p%]% %ptk%;TeamSay %p% has a SNIPER SLOT, Your Team: %server_sl_total[%ptk%]%/%server_sniperlimit%;PlayerYell %p%, you have a SNIPER SLOT;Log %pt% %p% is new sniper, %server_sl_total[%ptk%]% snipers on team %ptk%

# FREE UP SNIPER SLOT IF SNIPER HAS NON-SNIPER KIT KILL OR SNIPER LEAVES 
On Kill;Not Protected;Not MapMode GunMaster;Not Damage SniperRifle,DMR,Handgun,Melee,Explosive,Impact,Suicide;Not Weapon RoadKill,U_SerbuShorty;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay %p% lost his SNIPER SLOT (non-sniper kit kill), Your Team: %server_sl_total[%ptk%]%/%server_sniperlimit%;PlayerYell %p%, you lost your SNIPER SLOT (non-sniper kit kill);Log Ex-sniper %pt% %p% used %d% %w%, %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 %p% lost his SNIPER SLOT (left server), Your Team: %server_sl_total[%ptk%]%/%server_sniperlimit%;Log Ex-sniper %pt% %p% left server, %server_sl_total[%ptk%]% snipers on team %ptk%

# INFO MESSAGES
# !sniper tells you the current sniper count for your team
On Say;If %text% == !sniper;
PlayerSay Reserve slot with SniperRifle/DMR kill, lose it with non-sniper kit kill.
PlayerSay SNIPER SLOTS - Your Team: %server_sl_total[%ptk%]%/%server_sniperlimit%.
# !snipers tells you the current sniper counts for both teams
On Say;If %text% == !snipers;
PlayerSay SNIPER SLOTS - Team 1: %server_sl_total[1]%/%server_sniperlimit%, Team 2: %server_sl_total[2]%/%server_sniperlimit%.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by maxdralle*:

 

@AlcaGamerZ

 

here you have your !SHOTGUN limit + !SNIPER limit + WHITELIST

 

the code is for proconrulz.

the shotgun limit have 2 shotgun slots for each team

( CODE: Set %shotgunlimit% 2 )

 

the sniper limit have 2 sniper slots for each team

( CODE: Set %sniperlimit% 2 )

 

whitelist: admins, player with a reserved slot, and players from custom vip list can play without any limit.

custom vip list with playernames: ( CODE: Set %vip_list% "@@Playername1@@Playername2@@... )

 

 

IMPORTANT:

do this what Chilace said:

1) Switch off "Trace rules" (use it for debug only)

2) Set "Protect these players from Kick or Kill" to "Admins_and_Reserved_Slots"

 

 

Code:

####     Sniper + Shotgun Limit + Whitelist    ##########################
# SETTINGS ARE:    %shotgunlimit%   AND   %sniperlimit%   AND   %vip_list%

# WHITELIST FOR VIPS (admins, reserved slots, costum playerlist) - no weapon limit for this players
On Say; PlayerFirst; 
    Set %vip_list% "@@Playername1@@Playername2@@Playername3@@Playername4@@"
    Protected; Set %vip_no_limits% 1
    Admin; Set %vip_no_limits% 1
    If %vip_list% contains @@%p%@@; Set %vip_no_limits% 1

On Spawn; PlayerFirst; 
    Set %vip_list% "@@Playername1@@Playername2@@Playername3@@Playername4@@"
    Protected; Set %vip_no_limits% 1
    Admin; Set %vip_no_limits% 1
    If %vip_list% contains @@%p%@@; Set %vip_no_limits% 1



# Shotgun limit (2 pro Team)    ##########################
# IMPORTANT: HERE YOU CAN SET THE # OF SHOTGUN SLOT EACH TEAM: #
On Spawn; PlayerFirst; Set %shotgunlimit% 2
On Say; PlayerFirst; Set %shotgunlimit% 2

# KILL CHECK - RESERVE SHOTGUN-SLOT AFTER SHOTGUN KILL - NO FREE SLOT THAN KILL + MESSAGE #
On Kill;Damage Shotgun; Not Weapon U_SerbuShorty; Not MapMode GunMaster;If %vip_no_limits% != 1;
    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, C4, Clay, Knife; PlayerYell YOU HAVE A !SHOTGUN SLOT

# MAKE SHOTGUN-SLOT FREE AFTER NO SHOTGUN KILL - (allowed kills with shotgun slot: Shotgun, Pistole, Nades, Clay, C4, 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,U_C4,U_C4_Support,U_Claymore,U_Claymore_Recon, U_SP_Claymore;Not MapMode GunMaster; 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; 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;
    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; 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; Not MapMode GunMaster; If %vip_no_limits% != 1; TeamSay !SHOTGUN-LIMIT: Shotguns are limited on this server.; 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, C4, Clay, Knife
On Say;Text !shotgun; Not MapMode GunMaster; If %vip_no_limits% == 1; PlayerSay %p% you are a VIP. No !SHOTGUN-LIMIT for you!



# Sniper/DMR limit (2 pro Team)    ##########################
# IMPORTANT: HERE YOU CAN SET THE # OF SNIPER SLOT EACH TEAM: #
On Spawn;PlayerFirst; Set %sniperlimit% 2
On Say;PlayerFirst; Set %sniperlimit% 2

# KILL CHECK - RESERVE SNIPER-SLOT AFTER SNIPER KILL - NO FREE SLOT THAN KILL + MESSAGE #
On Kill;Damage SniperRifle,DMR;Not MapMode GunMaster; If %vip_no_limits% != 1;
    If %server_global_snipers[%ptk%]% >= %sniperlimit%; If %server_global_playersniperstatus[%p%][%ptk%]% != 1; TeamSay !SNIPER-LIMIT: %p% was KILLED by !SNIPER limit (max %sniperlimit% snipers each team). Type !snipers; PlayerYell KILLED by !SNIPER limit; Kill 100
    If %server_global_snipers[%ptk%]% < %sniperlimit%; If %server_global_playersniperstatus[%p%][%ptk%]% != 1; Set %server_global_playersniperstatus[%p%][%ptk%]% 1; Incr %server_global_snipers[%ptk%]%; TeamSay !SNIPER-LIMIT: %p% have a !SNIPER slot (%server_global_snipers[%ptk%]%/%sniperlimit%); PlayerSay !SNIPER-LIMIT: Sniper weapons: Bolt Sniper, DMR, Pistol, Nades, C4, Clay, Knife; PlayerYell YOU HAVE A !SNIPER SLOT

# MAKE SNIPER-SLOT FREE AFTER NO SNIPER KILL - (allowed kills with sniper slot: Sniper, DMR, Pistole, Nades, Knife, Clay, C4, Vehicles...) #
On Kill; Not Damage SniperRifle;Not Damage DMR;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,U_SerbuShorty,U_C4,U_C4_Support,U_Claymore,U_Claymore_Recon, U_SP_Claymore; If %server_global_playersniperstatus[%p%][%ptk%]% == 1; Set %server_global_playersniperstatus[%p%][%ptk%]% 0; Decr %server_global_snipers[%ptk%]%; TeamSay !SNIPER-LIMIT: %p% gave up his !SNIPER slot (%server_global_snipers[%ptk%]%/%sniperlimit%); PlayerYell You lost your !SNIPER slot
On Leave; If %server_global_playersniperstatus[%p%][%ptk%]% == 1; Set %server_global_playersniperstatus[%p%][%ptk%]% 0; Decr %server_global_snipers[%ptk%]%; TeamSay !SNIPER-LIMIT: %p% gave up his !SNIPER slot (%server_global_snipers[%ptk%]%/%sniperlimit%)

# SERVER LEAVE + TEAM SWITCH CHECK #
On Spawn; 
    if %ptk% != 0; if %server_global_playersniperstatus[%p%][0]% == 1; Set %server_global_playersniperstatus[%p%][0]% 0; Decr %server_global_snipers[0]%; PlayerSay !SNIPER-LIMIT: You lost your !SNIPER slot (Team-Switch); PlayerYell You lost your !SNIPER slot
    if %ptk% != 1; if %server_global_playersniperstatus[%p%][1]% == 1; Set %server_global_playersniperstatus[%p%][1]% 0; Decr %server_global_snipers[1]%; PlayerSay !SNIPER-LIMIT: You lost your !SNIPER slot (Team-Switch); PlayerYell You lost your !SNIPER slot
    if %ptk% != 2; if %server_global_playersniperstatus[%p%][2]% == 1; Set %server_global_playersniperstatus[%p%][2]% 0; Decr %server_global_snipers[2]%; PlayerSay !SNIPER-LIMIT: You lost your !SNIPER slot (Team-Switch); PlayerYell You lost your !SNIPER slot
    if %ptk% != 3; if %server_global_playersniperstatus[%p%][3]% == 1; Set %server_global_playersniperstatus[%p%][3]% 0; Decr %server_global_snipers[3]%; PlayerSay !SNIPER-LIMIT: You lost your !SNIPER slot (Team-Switch); PlayerYell You lost your !SNIPER slot
On Leave; If %server_global_playersniperstatus[%p%][%ptk%]% == 1; Set %server_global_playersniperstatus[%p%][%ptk%]% 0; Decr %server_global_snipers[%ptk%]%; TeamSay SNIPER-LIMIT: %p% gave up his sniper slot (%server_global_snipers[%ptk%]%/%sniperlimit%)

# !sniper IN-GAME-CHAT COMMAND #
On Say;Text !sniper,!dmr; Not MapMode GunMaster; If %vip_no_limits% != 1; TeamSay !SNIPER-LIMIT: Snipers/DMRs are limited on this server. Currently: %server_global_snipers[%ptk%]% of %sniperlimit% for your team; If %server_global_playersniperstatus[%p%][%ptk%]% == 1; PlayerSay !SNIPER-LIMIT: You have a !SNIPER slot! Sniper weapons: Bolt Sniper, DMR, Pistol, Nades, C4, Clay, Knife
On Say;Text !sniper,!dmr; Not MapMode GunMaster; If %vip_no_limits% == 1; PlayerSay %p% you are a VIP. No !SNIPER-LIMIT for you!

####     Sniper + Shotgun Limit + Whitelist   END   ##########################
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by gillibong*:

 

Hello Everyone!

 

Can someone give me please commands to insert to proconrulz for an some wepon limits?

 

Rpg 2 per team

Claymore 2 per team

Sniper 2 per team

C4 2 pear team

 

Thanks allot Guys

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

Hello Everyone!

 

Can someone give me please commands to insert to proconrulz for an some wepon limits?

 

Rpg 2 per team

Claymore 2 per team

Sniper 2 per team

C4 2 pear team

 

Thanks allot Guys

Limiting the number of secondary weapons per team is very problematic using proconrulz. Proconrulz has no way of knowing which weapons players are using until they kill with the weapon. Since it is a secondary weapon, it could take you many minutes to know when a player is using a weapon and many more.minutes to know if a player has stopped using a weapon. Imagine that it might take 10 minutes to learn that a player X has stopped using RPG and during that time, 15 people may have been killed for using RPG because you assumed that player X was still using RPG.

 

I think it is only realistic to limit primary weapons if limiting quantity per team using proconrulz.

 

For 2 snipers per team: myrcon.net/.../proconrulz-sniper-limiter-v27-by-tarreltje

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by gillibong*:

 

Limiting the number of secondary weapons per team is very problematic using proconrulz. Proconrulz has no way of knowing which weapons players are using until they kill with the weapon. Since it is a secondary weapon, it could take you many minutes to know when a player is using a weapon and many more.minutes to know if a player has stopped using a weapon. Imagine that it might take 10 minutes to learn that a player X has stopped using RPG and during that time, 15 people may have been killed for using RPG because you assumed that player X was still using RPG.

 

I think it is only realistic to limit primary weapons if limiting quantity per team using proconrulz.

 

For 2 snipers per team: myrcon.net/.../proconrulz-sniper-limiter-v27-by-tarreltje

Thanks for your replay

 

so what Plugin i can use for Rpg limit?

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

You can easily make RPG completely disallowed by using this plugin

or by using ColColonCleaner's loadout enforcer plugin (costs $15)

myrcon.net/.../on-spawn-loadout-enforcer-for-infantryvehicles-adkatslrt

or by using Singularity's simple weapon limiter plugin (free)

myrcon.net/.../simple-weapon-limiter-v1000 .

 

If you just want to limit a certain number of players who can use the RPG but not disallow it outright, I don't know of a good solution.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by AlcaGamerZ*:

 

@AlcaGamerZ

 

here you have your !SHOTGUN limit + !SNIPER limit + WHITELIST

 

the code is for proconrulz.

the shotgun limit have 2 shotgun slots for each team

( CODE: Set %shotgunlimit% 2 )

 

the sniper limit have 2 sniper slots for each team

( CODE: Set %sniperlimit% 2 )

 

whitelist: admins, player with a reserved slot, and players from custom vip list can play without any limit.

custom vip list with playernames: ( CODE: Set %vip_list% "@@Playername1@@Playername2@@... )

 

 

IMPORTANT:

do this what Chilace said:

1) Switch off "Trace rules" (use it for debug only)

2) Set "Protect these players from Kick or Kill" to "Admins_and_Reserved_Slots"

 

 

Code:

####     Sniper + Shotgun Limit + Whitelist    ##########################
# SETTINGS ARE:    %shotgunlimit%   AND   %sniperlimit%   AND   %vip_list%

# WHITELIST FOR VIPS (admins, reserved slots, costum playerlist) - no weapon limit for this players
On Say; PlayerFirst; 
    Set %vip_list% "@@Playername1@@Playername2@@Playername3@@Playername4@@"
    Protected; Set %vip_no_limits% 1
    Admin; Set %vip_no_limits% 1
    If %vip_list% contains @@%p%@@; Set %vip_no_limits% 1

On Spawn; PlayerFirst; 
    Set %vip_list% "@@Playername1@@Playername2@@Playername3@@Playername4@@"
    Protected; Set %vip_no_limits% 1
    Admin; Set %vip_no_limits% 1
    If %vip_list% contains @@%p%@@; Set %vip_no_limits% 1



# Shotgun limit (2 pro Team)    ##########################
# IMPORTANT: HERE YOU CAN SET THE # OF SHOTGUN SLOT EACH TEAM: #
On Spawn; PlayerFirst; Set %shotgunlimit% 2
On Say; PlayerFirst; Set %shotgunlimit% 2

# KILL CHECK - RESERVE SHOTGUN-SLOT AFTER SHOTGUN KILL - NO FREE SLOT THAN KILL + MESSAGE #
On Kill;Damage Shotgun; Not Weapon U_SerbuShorty; Not MapMode GunMaster;If %vip_no_limits% != 1;
    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, C4, Clay, Knife; PlayerYell YOU HAVE A !SHOTGUN SLOT

# MAKE SHOTGUN-SLOT FREE AFTER NO SHOTGUN KILL - (allowed kills with shotgun slot: Shotgun, Pistole, Nades, Clay, C4, 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,U_C4,U_C4_Support,U_Claymore,U_Claymore_Recon, U_SP_Claymore;Not MapMode GunMaster; 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; 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;
    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; 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; Not MapMode GunMaster; If %vip_no_limits% != 1; TeamSay !SHOTGUN-LIMIT: Shotguns are limited on this server.; 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, C4, Clay, Knife
On Say;Text !shotgun; Not MapMode GunMaster; If %vip_no_limits% == 1; PlayerSay %p% you are a VIP. No !SHOTGUN-LIMIT for you!



# Sniper/DMR limit (2 pro Team)    ##########################
# IMPORTANT: HERE YOU CAN SET THE # OF SNIPER SLOT EACH TEAM: #
On Spawn;PlayerFirst; Set %sniperlimit% 2
On Say;PlayerFirst; Set %sniperlimit% 2

# KILL CHECK - RESERVE SNIPER-SLOT AFTER SNIPER KILL - NO FREE SLOT THAN KILL + MESSAGE #
On Kill;Damage SniperRifle,DMR;Not MapMode GunMaster; If %vip_no_limits% != 1;
    If %server_global_snipers[%ptk%]% >= %sniperlimit%; If %server_global_playersniperstatus[%p%][%ptk%]% != 1; TeamSay !SNIPER-LIMIT: %p% was KILLED by !SNIPER limit (max %sniperlimit% snipers each team). Type !snipers; PlayerYell KILLED by !SNIPER limit; Kill 100
    If %server_global_snipers[%ptk%]% < %sniperlimit%; If %server_global_playersniperstatus[%p%][%ptk%]% != 1; Set %server_global_playersniperstatus[%p%][%ptk%]% 1; Incr %server_global_snipers[%ptk%]%; TeamSay !SNIPER-LIMIT: %p% have a !SNIPER slot (%server_global_snipers[%ptk%]%/%sniperlimit%); PlayerSay !SNIPER-LIMIT: Sniper weapons: Bolt Sniper, DMR, Pistol, Nades, C4, Clay, Knife; PlayerYell YOU HAVE A !SNIPER SLOT

# MAKE SNIPER-SLOT FREE AFTER NO SNIPER KILL - (allowed kills with sniper slot: Sniper, DMR, Pistole, Nades, Knife, Clay, C4, Vehicles...) #
On Kill; Not Damage SniperRifle;Not Damage DMR;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,U_SerbuShorty,U_C4,U_C4_Support,U_Claymore,U_Claymore_Recon, U_SP_Claymore; If %server_global_playersniperstatus[%p%][%ptk%]% == 1; Set %server_global_playersniperstatus[%p%][%ptk%]% 0; Decr %server_global_snipers[%ptk%]%; TeamSay !SNIPER-LIMIT: %p% gave up his !SNIPER slot (%server_global_snipers[%ptk%]%/%sniperlimit%); PlayerYell You lost your !SNIPER slot
On Leave; If %server_global_playersniperstatus[%p%][%ptk%]% == 1; Set %server_global_playersniperstatus[%p%][%ptk%]% 0; Decr %server_global_snipers[%ptk%]%; TeamSay !SNIPER-LIMIT: %p% gave up his !SNIPER slot (%server_global_snipers[%ptk%]%/%sniperlimit%)

# SERVER LEAVE + TEAM SWITCH CHECK #
On Spawn; 
    if %ptk% != 0; if %server_global_playersniperstatus[%p%][0]% == 1; Set %server_global_playersniperstatus[%p%][0]% 0; Decr %server_global_snipers[0]%; PlayerSay !SNIPER-LIMIT: You lost your !SNIPER slot (Team-Switch); PlayerYell You lost your !SNIPER slot
    if %ptk% != 1; if %server_global_playersniperstatus[%p%][1]% == 1; Set %server_global_playersniperstatus[%p%][1]% 0; Decr %server_global_snipers[1]%; PlayerSay !SNIPER-LIMIT: You lost your !SNIPER slot (Team-Switch); PlayerYell You lost your !SNIPER slot
    if %ptk% != 2; if %server_global_playersniperstatus[%p%][2]% == 1; Set %server_global_playersniperstatus[%p%][2]% 0; Decr %server_global_snipers[2]%; PlayerSay !SNIPER-LIMIT: You lost your !SNIPER slot (Team-Switch); PlayerYell You lost your !SNIPER slot
    if %ptk% != 3; if %server_global_playersniperstatus[%p%][3]% == 1; Set %server_global_playersniperstatus[%p%][3]% 0; Decr %server_global_snipers[3]%; PlayerSay !SNIPER-LIMIT: You lost your !SNIPER slot (Team-Switch); PlayerYell You lost your !SNIPER slot
On Leave; If %server_global_playersniperstatus[%p%][%ptk%]% == 1; Set %server_global_playersniperstatus[%p%][%ptk%]% 0; Decr %server_global_snipers[%ptk%]%; TeamSay SNIPER-LIMIT: %p% gave up his sniper slot (%server_global_snipers[%ptk%]%/%sniperlimit%)

# !sniper IN-GAME-CHAT COMMAND #
On Say;Text !sniper,!dmr; Not MapMode GunMaster; If %vip_no_limits% != 1; TeamSay !SNIPER-LIMIT: Snipers/DMRs are limited on this server. Currently: %server_global_snipers[%ptk%]% of %sniperlimit% for your team; If %server_global_playersniperstatus[%p%][%ptk%]% == 1; PlayerSay !SNIPER-LIMIT: You have a !SNIPER slot! Sniper weapons: Bolt Sniper, DMR, Pistol, Nades, C4, Clay, Knife
On Say;Text !sniper,!dmr; Not MapMode GunMaster; If %vip_no_limits% == 1; PlayerSay %p% you are a VIP. No !SNIPER-LIMIT for you!

####     Sniper + Shotgun Limit + Whitelist   END   ##########################
Thnks for the code guys , will try it out later on , have an exam going right now . However,i just faced with hacker problem yesterday , do we have any automatic admin ban? . As for yesterday , a player name icethor222 , was using aimbot every time he kills he get headshot . I was trying to ban him manually thro procon as i'm not in the game . But the procon crashed with the server . I have no idea what happen maybe somekind of heavy load something? ... do appreciate if there is a way preventing hackers while the admins is away
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by spatieman*:

 

good afternoon.

got a small isue, i am making a sneaky shortcut for doing /nextlevel and /yes (admins only that is)

what ever i try, it wont work.

 

This.

Code:

On Say;Text /next;playersay Changing maps;Exec /nextlevel;exec /yes
Seems also not to work.

 

2nd.

for TDM we want a kill rule for abusing use of M224 (mortar)

 

Code:

On Kill;Weapon m224;yell M224 Mortar not allowed in TDM;kill 3000
seems not to work.

 

As for the EODbot.

i am trying to make a fun spam when some1 got torched by the eodbot.

but is seems not posible, is there a workaround for it ?

 

P.S

its a BF3 server

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by BuRockK*:

 

good afternoon.

got a small isue, i am making a sneaky shortcut for doing /nextlevel and /yes (admins only that is)

what ever i try, it wont work.

 

This.

Code:

On Say;Text /next;playersay Changing maps;Exec /nextlevel;exec /yes
Seems also not to work.

 

2nd.

for TDM we want a kill rule for abusing use of M224 (mortar)

 

Code:

On Kill;Weapon m224;yell M224 Mortar not allowed in TDM;kill 3000
seems not to work.

 

As for the EODbot.

i am trying to make a fun spam when some1 got torched by the eodbot.

but is seems not posible, is there a workaround for it ?

 

P.S

its a BF3 server

When you want to change current map, you should always consider "saving" that current round before changing the map. Because the way BF4 works, changin map before ending the round (!endround ) will cause server to change round immidiately without saving any scores or kill counts any player might have at the moment. So you should always use the in-game command "!endround " before changing to another map. (Rcon command: mapList.endRound )

 

With that in mind, it would be better to "end" the round rather than changing to nextmap. Once the end of round screen is finish the server will move on to next map anyway:

Code:

On Say;Admin;Text /next;
    if %targettext% == 0; PlayerSay You need to specify a winning team ID/NAME (1/2 or US/RU/CH);PlayerSay Ex: /next 1;end
    exec mapList.endRound %targettext%
For M224 (If player will be killed, always use kill before any yell commands. If you use yell first, text will disappear immidiately when the player is killed right after.):

Code:

On Kill;Weapon m224;kill 100;PlayerYell 5 M224 Mortar not allowed in TDM.
For EOD Bot, you cannot track it on any damage or on any kill because EOT bot kills shown as "Death" in game most the time. "Death" is used in many kill variants in game so it would cause more problems in your gameplay if you use "death" info in your code. This is a BF4 side bug and was never patched.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by spatieman*:

 

i give it a try, i want the /next incase we end up in a borring map, so score on fresh map wont bother.

nop.

not changing, not even with

Code:

On Say;Admin;Text /next;playersay changing map;exec mapList.runNextRound %ptk%
but i got now something to work on.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

I am not sure what you are attempting to do with %ptk%, but mapList.runNextRound will just run whatever the next map is in the map list. You can't specify which specific map to run next without first clearing the map list and creating a new map list. It becomes problematic if you want to do more than just run whatever map is next.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by BuRockK*:

 

If you have the In-Game Admin plugin enabled in Procon, you can use the command !nextlevel to skip to next map in rotation (wont matter how many rounds are set in current map, !nextlevel will change to next map in line)

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by AlcaGamerZ*:

 

@AlcaGamerZ

 

here you have your !SHOTGUN limit + !SNIPER limit + WHITELIST

 

the code is for proconrulz.

the shotgun limit have 2 shotgun slots for each team

( CODE: Set %shotgunlimit% 2 )

 

the sniper limit have 2 sniper slots for each team

( CODE: Set %sniperlimit% 2 )

 

whitelist: admins, player with a reserved slot, and players from custom vip list can play without any limit.

custom vip list with playernames: ( CODE: Set %vip_list% "@@Playername1@@Playername2@@... )

 

 

IMPORTANT:

do this what Chilace said:

1) Switch off "Trace rules" (use it for debug only)

2) Set "Protect these players from Kick or Kill" to "Admins_and_Reserved_Slots"

 

 

Code:

####     Sniper + Shotgun Limit + Whitelist    ##########################
# SETTINGS ARE:    %shotgunlimit%   AND   %sniperlimit%   AND   %vip_list%

# WHITELIST FOR VIPS (admins, reserved slots, costum playerlist) - no weapon limit for this players
On Say; PlayerFirst; 
    Set %vip_list% "@@Playername1@@Playername2@@Playername3@@Playername4@@"
    Protected; Set %vip_no_limits% 1
    Admin; Set %vip_no_limits% 1
    If %vip_list% contains @@%p%@@; Set %vip_no_limits% 1

On Spawn; PlayerFirst; 
    Set %vip_list% "@@Playername1@@Playername2@@Playername3@@Playername4@@"
    Protected; Set %vip_no_limits% 1
    Admin; Set %vip_no_limits% 1
    If %vip_list% contains @@%p%@@; Set %vip_no_limits% 1



# Shotgun limit (2 pro Team)    ##########################
# IMPORTANT: HERE YOU CAN SET THE # OF SHOTGUN SLOT EACH TEAM: #
On Spawn; PlayerFirst; Set %shotgunlimit% 2
On Say; PlayerFirst; Set %shotgunlimit% 2

# KILL CHECK - RESERVE SHOTGUN-SLOT AFTER SHOTGUN KILL - NO FREE SLOT THAN KILL + MESSAGE #
On Kill;Damage Shotgun; Not Weapon U_SerbuShorty; Not MapMode GunMaster;If %vip_no_limits% != 1;
    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, C4, Clay, Knife; PlayerYell YOU HAVE A !SHOTGUN SLOT

# MAKE SHOTGUN-SLOT FREE AFTER NO SHOTGUN KILL - (allowed kills with shotgun slot: Shotgun, Pistole, Nades, Clay, C4, 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,U_C4,U_C4_Support,U_Claymore,U_Claymore_Recon, U_SP_Claymore;Not MapMode GunMaster; 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; 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;
    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; 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; Not MapMode GunMaster; If %vip_no_limits% != 1; TeamSay !SHOTGUN-LIMIT: Shotguns are limited on this server.; 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, C4, Clay, Knife
On Say;Text !shotgun; Not MapMode GunMaster; If %vip_no_limits% == 1; PlayerSay %p% you are a VIP. No !SHOTGUN-LIMIT for you!



# Sniper/DMR limit (2 pro Team)    ##########################
# IMPORTANT: HERE YOU CAN SET THE # OF SNIPER SLOT EACH TEAM: #
On Spawn;PlayerFirst; Set %sniperlimit% 2
On Say;PlayerFirst; Set %sniperlimit% 2

# KILL CHECK - RESERVE SNIPER-SLOT AFTER SNIPER KILL - NO FREE SLOT THAN KILL + MESSAGE #
On Kill;Damage SniperRifle,DMR;Not MapMode GunMaster; If %vip_no_limits% != 1;
    If %server_global_snipers[%ptk%]% >= %sniperlimit%; If %server_global_playersniperstatus[%p%][%ptk%]% != 1; TeamSay !SNIPER-LIMIT: %p% was KILLED by !SNIPER limit (max %sniperlimit% snipers each team). Type !snipers; PlayerYell KILLED by !SNIPER limit; Kill 100
    If %server_global_snipers[%ptk%]% < %sniperlimit%; If %server_global_playersniperstatus[%p%][%ptk%]% != 1; Set %server_global_playersniperstatus[%p%][%ptk%]% 1; Incr %server_global_snipers[%ptk%]%; TeamSay !SNIPER-LIMIT: %p% have a !SNIPER slot (%server_global_snipers[%ptk%]%/%sniperlimit%); PlayerSay !SNIPER-LIMIT: Sniper weapons: Bolt Sniper, DMR, Pistol, Nades, C4, Clay, Knife; PlayerYell YOU HAVE A !SNIPER SLOT

# MAKE SNIPER-SLOT FREE AFTER NO SNIPER KILL - (allowed kills with sniper slot: Sniper, DMR, Pistole, Nades, Knife, Clay, C4, Vehicles...) #
On Kill; Not Damage SniperRifle;Not Damage DMR;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,U_SerbuShorty,U_C4,U_C4_Support,U_Claymore,U_Claymore_Recon, U_SP_Claymore; If %server_global_playersniperstatus[%p%][%ptk%]% == 1; Set %server_global_playersniperstatus[%p%][%ptk%]% 0; Decr %server_global_snipers[%ptk%]%; TeamSay !SNIPER-LIMIT: %p% gave up his !SNIPER slot (%server_global_snipers[%ptk%]%/%sniperlimit%); PlayerYell You lost your !SNIPER slot
On Leave; If %server_global_playersniperstatus[%p%][%ptk%]% == 1; Set %server_global_playersniperstatus[%p%][%ptk%]% 0; Decr %server_global_snipers[%ptk%]%; TeamSay !SNIPER-LIMIT: %p% gave up his !SNIPER slot (%server_global_snipers[%ptk%]%/%sniperlimit%)

# SERVER LEAVE + TEAM SWITCH CHECK #
On Spawn; 
    if %ptk% != 0; if %server_global_playersniperstatus[%p%][0]% == 1; Set %server_global_playersniperstatus[%p%][0]% 0; Decr %server_global_snipers[0]%; PlayerSay !SNIPER-LIMIT: You lost your !SNIPER slot (Team-Switch); PlayerYell You lost your !SNIPER slot
    if %ptk% != 1; if %server_global_playersniperstatus[%p%][1]% == 1; Set %server_global_playersniperstatus[%p%][1]% 0; Decr %server_global_snipers[1]%; PlayerSay !SNIPER-LIMIT: You lost your !SNIPER slot (Team-Switch); PlayerYell You lost your !SNIPER slot
    if %ptk% != 2; if %server_global_playersniperstatus[%p%][2]% == 1; Set %server_global_playersniperstatus[%p%][2]% 0; Decr %server_global_snipers[2]%; PlayerSay !SNIPER-LIMIT: You lost your !SNIPER slot (Team-Switch); PlayerYell You lost your !SNIPER slot
    if %ptk% != 3; if %server_global_playersniperstatus[%p%][3]% == 1; Set %server_global_playersniperstatus[%p%][3]% 0; Decr %server_global_snipers[3]%; PlayerSay !SNIPER-LIMIT: You lost your !SNIPER slot (Team-Switch); PlayerYell You lost your !SNIPER slot
On Leave; If %server_global_playersniperstatus[%p%][%ptk%]% == 1; Set %server_global_playersniperstatus[%p%][%ptk%]% 0; Decr %server_global_snipers[%ptk%]%; TeamSay SNIPER-LIMIT: %p% gave up his sniper slot (%server_global_snipers[%ptk%]%/%sniperlimit%)

# !sniper IN-GAME-CHAT COMMAND #
On Say;Text !sniper,!dmr; Not MapMode GunMaster; If %vip_no_limits% != 1; TeamSay !SNIPER-LIMIT: Snipers/DMRs are limited on this server. Currently: %server_global_snipers[%ptk%]% of %sniperlimit% for your team; If %server_global_playersniperstatus[%p%][%ptk%]% == 1; PlayerSay !SNIPER-LIMIT: You have a !SNIPER slot! Sniper weapons: Bolt Sniper, DMR, Pistol, Nades, C4, Clay, Knife
On Say;Text !sniper,!dmr; Not MapMode GunMaster; If %vip_no_limits% == 1; PlayerSay %p% you are a VIP. No !SNIPER-LIMIT for you!

####     Sniper + Shotgun Limit + Whitelist   END   ##########################
Oh wait , have a question . You mean i need to rename the red in color to the player that want to be exception from sniper/shotgun limit? so it's not sync with the server reserved list?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by maxdralle*:

 

Oh wait , have a question . You mean i need to rename the red in color to the player that want to be exception from sniper/shotgun limit? so it's not sync with the server reserved list?

it sync with the reserved slot list automatically.

it sync with the admin list automatically.

 

the red playernames is a costum list. you dont need to change it... try it out

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by AlcaGamerZ*:

 

it sync with the reserved slot list automatically.

it sync with the admin list automatically.

 

the red playernames is a costum list. you dont need to change it... try it out

Alright! Ill be bak for review in about a week , still having an exam right now
* Restored post. It could be that the author is no longer active.
Link to comment
  • 3 weeks later...

Originally Posted by Hodor*:

 

Hi guys, is it possible to make rule work from 3 to 13 and from 14 to 19 another rule:

Code:

On Kill;If %ini_vars_online% = 3,4,5,6,7,8,9,10,11,12,13;Set %ini_vars_lock% 2
On Kill;If %ini_vars_online% = 14,15,16,17,18,19;Set %ini_vars_lock% 3
So this rule not worked for me, can someone help_:huh:
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Chilace*:

 

Hi guys, is it possible to make rule work from 3 to 13 and from 14 to 19 another rule:

Code:
On Kill;If %ini_vars_online% >= 3;If %ini_vars_online% <= 13;Set %ini_vars_lock% 2
On Kill;If %ini_vars_online% >= 14;If %ini_vars_online% <= 19;Set %ini_vars_lock% 3
here we go
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

Code:

On Kill;If %ini_vars_online% >= 3;If %ini_vars_online% <= 13;Set %ini_vars_lock% 2
On Kill;If %ini_vars_online% >= 14;If %ini_vars_online% <= 19;Set %ini_vars_lock% 3
here we go
You need to have another line or something which sets %ini_vars_online% to some value. As it is, %ini_vars_online% will be 0 and will always be 0 because it is never set to any value.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Chilace*:

 

You need to have another line or something which sets %ini_vars_online% to some value. As it is, %ini_vars_online% will be 0 and will always be 0 because it is never set to any value.

I think this is just a small portion of his code.
* Restored post. It could be that the author is no longer active.
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




  • Our picks

    • Game Server Hosting:

      We're happy to announce that EZRCON will branch out into the game server provider scene. This is a big step for us so please having patience if something doesn't go right in this area. Now, what makes us different compared to other providers? Well, we're going with the idea of having a scaleable server hosting and providing more control in how you set up your server. For example, in Minecraft, you have the ability to control how many CPU cores you wish your server to have access to, how much RAM you want to use, how much disk space you want to use. This type of control can't be offered in a single service package so you're able to configure a custom package the way you want it.

      You can see all the available games here. Currently, we have the following games available.

      Valheim (From $1.50 USD)


      Rust (From $3.20 USD)


      Minecraft (Basic) (From $4.00 USD)


      Call of Duty 4X (From $7.00 USD)


      OpenTTD (From $4.00 USD)


      Squad (From $9.00 USD)


      Insurgency: Sandstorm (From $6.40 USD)


      Changes to US-East:

      Starting in January 2022, we will be moving to a different provider that has better support, better infrastructure, and better connectivity. We've noticed that the connection/routes to this location are not ideal and it's been hard getting support to correct this. Our contract for our two servers ends in March/April respectively. If you currently have servers in this location you will be migrated over to the new provider. We'll have more details when the time comes closer to January. The new location for this change will be based out of Atlanta, GA. If you have any questions/concerns please open a ticket and we'll do our best to answer them.
      • 5 replies
    • Hello All,

      I wanted to give an update to how EZRCON is doing. As of today we have 56 active customers using the services offered. I'm glad its doing so well and it hasn't been 1 year yet. To those that have services with EZRCON, I hope the service is doing well and if not please let us know so that we can improve it where possible. We've done quite a few changes behind the scenes to improve the performance hopefully. 

      We'll be launching a new location for hosting procon layers in either Los Angeles, USA or Chicago, IL. Still being decided on where the placement should be but these two locations are not set in stone yet. We would like to get feedback on where we should have a new location for hosting the Procon Layers, which you can do by replying to this topic. A poll will be created where people can vote on which location they would like to see.

      We're also looking for some suggestions on what else you would like to see for hosting provider options. So please let us know your thoughts on this matter.
      • 4 replies
    • Added ability to disable the new API check for player country info


      Updated GeoIP database file


      Removed usage sending stats


      Added EZRCON ad banner



      If you are upgrading then you may need to add these two lines to your existing installation in the file procon.cfg. To enable these options just change False to True.

      procon.private.options.UseGeoIpFileOnly False
      procon.private.options.BlockRssFeedNews False



       
      • 2 replies
    • I wanted I let you know that I am starting to build out the foundation for the hosting services that I talked about here. The pricing model I was originally going for wasn't going to be suitable for how I want to build it. So instead I decided to offer each service as it's own product instead of a package deal. In the future, hopefully, I will be able to do this and offer discounts to those that choose it.

      Here is how the pricing is laid out for each service as well as information about each. This is as of 7/12/2020.

      Single MySQL database (up to 30 GB) is $10 USD per month.



      If you go over the 30 GB usage for the database then each additional gigabyte is charged at $0.10 USD each billing cycle. If you're under 30GB you don't need to worry about this.


      Databases are replicated across 3 zones (regions) for redundancy. One (1) on the east coast of the USA, One (1) in Frankfurt, and One (1) in Singapore. Depending on the demand, this would grow to more regions.


      Databases will also be backed up daily and retained for 7 days.




      Procon Layer will be $2 USD per month.


      Each layer will only allow one (1) game server connection. The reason behind this is for performance.


      Each layer will also come with all available plugins installed by default. This is to help facilitate faster deployments and get you up and running quickly.


      Each layer will automatically restart if Procon crashes. 


      Each layer will also automatically restart daily at midnight to make sure it stays in tip-top shape.


      Custom plugins can be installed by submitting a support ticket.




      Battlefield Admin Control Panel (BFACP) will be $5 USD per month


      As I am still working on building version 3 of the software, I will be installing the last version I did. Once I complete version 3 it will automatically be upgraded for you.





      All these services will be managed by me so you don't have to worry about the technical side of things to get up and going.

      If you would like to see how much it would cost for the services, I made a calculator that you can use. It can be found here https://ezrcon.com/calculator.html

       
      • 11 replies
    • I have pushed out a new minor release which updates the geodata pull (flags in the playerlisting). This should be way more accurate now. As always, please let me know if any problems show up.

       
      • 9 replies
×
×
  • Create New...

Important Information

Please review our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.