Jump to content

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


ColColonCleaner

Recommended Posts

Originally Posted by LLIAMAH*:

 

Hey bros! I could not understand, if I actually can limit FLYING on spawn beacon or no?

If it's possible, what exactly I'll need like a plugin? ProconRulz can't be useful in that problem?

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

Originally Posted by ColColonCleaner*:

 

Hey bros! I could not understand, if I actually can limit FLYING on spawn beacon or no?

If it's possible, what exactly I'll need like a plugin? ProconRulz can't be useful in that problem?

You mean spawning in a parachute? No that's not possible.

 

Assuming bf3 canals wanting to limit people on the crane.

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

Originally Posted by LLIAMAH*:

 

You mean spawning in a parachute? No that's not possible.

 

Assuming bf3 canals wanting to limit people on the crane.

Yes I mean spawning in a parachute. To be precise, I need to limit these situations, while we have a great combat on the ground among buildings, a lot of players ceep sitting inside the one building where we can't reach without flying.

& that is a problem for us. Because we have also the easy camping from the roofs of the all buildings. So I need to limit that things & that is all what I need.

We can accept normal camping from the roofs where we can reach without flying, but not more.

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

Originally Posted by ty_ger07*:

 

Yes I mean spawning in a parachute. To be precise, I need to limit these situations, while we have a great combat on the ground among buildings, a lot of players ceep sitting inside the one building where we can't reach without flying.

& that is a problem for us. Because we have also the easy camping from the roofs of the all buildings. So I need to limit that things & that is all what I need.

We can accept normal camping from the roofs where we can reach without flying, but not more.

"It's not possible". If you want to limit it, email DICE or EA. It's part of the game and cannot be controlled by any plugin or admin program.

 

The only way to control it is to make a rule against it and then manually kill, kick, or ban players you see doing it.

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

Originally Posted by ColColonCleaner*:

 

So I've understood that. Thank you guys. I'll try to send email DICE & EA)))

 

But I can almost limit using radio beacon like a weapon, can't I do that?

Loadout items cannot be limited in BF3. They can in BF4 using the loadout enforcer plugin.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by LLIAMAH*:

 

Loadout items cannot be limited in BF3. They can in BF4 using the loadout enforcer plugin.

Ok... We'll go harder... Just I must to limit snipers on the current maps? But that is so fat limitation... I mean, that's too violent to do that just for limit fly...

 

So, if it's possible, I'll try it.

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

Originally Posted by Mamba334*:

 

Could someone please answer my question? Is this IL or Proconrulz to limit shotguns on TDM and RUSH Modes? I have went through 200 of the 511 posts and no one has asked this I guess.

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

Originally Posted by maxdralle*:

 

Could someone please answer my question? Is this IL or Proconrulz to limit shotguns on TDM and RUSH Modes? I have went through 200 of the 511 posts and no one has asked this I guess.

OPTION1:

no shotgun on TDM / RUSH mode (copy paste in proconrulz):

Code:

On Kill; MapMode Rush,TeamDeathMatch;Damage Shotgun; Say %p% KILLED for using %w%; Kill 100
OPTION2

and here the complete version with !rules message, warning yell, kill, kick, ban for 1 hour:

Code:

#######  WEAPON RULES - RUSH/TDM only   #######
# !rules Text Template
On Spawn;MapMode Rush,TeamDeathMatch;PlayerFirst
    Set %ChatRules% "RULES: No Shotguns on TDM/Rush"
    Set %PrivPopupWarnung% "RULES: No Shotguns"
    PlayerSay %ChatRules%; PlayerYell %PrivPopupWarnung%;

On Say;MapMode Rush,TeamDeathMatch;PlayerFirst
    Set %ChatRules% "RULES: No Shotguns on TDM/Rush"
    Set %PrivPopupWarnung% "No Shotguns"


# Forbitten Weapons:
On Kill; MapMode Rush,TeamDeathMatch;Damage Shotgun; Set %WaffeVerboten% 1

# Whitelist:
#On Kill;Weapon U_M67,U_Grenade_RGO,U_V40,U_M34,U_M34;Set %WaffeVerboten% 0

# DEBUG - Show WeaponID on suicide:
On Suicide;PlayerSay %p% WeaponID: %wk%

# Admin Actions (warning, kill, kick, ban):
On Kill;if %WaffeVerboten% == 1;
    PlayerCount 4;Set %WaffeVerboten% 0;Set %warnyell% 1;Log %p% was BANNED (1 hour) for using %w%;Say %p% was BANNED by admin for using a %w%;Yell %p% was BANNED for using %w%;TempBan 3600 %p% Not allowed weapon. Read the rules
    Set %KomischerBug% 1
    PlayerCount 2;Set %WaffeVerboten% 0;Set %warnyell% 1;Say %p% was KICKED by admin for using a %w%;Kick %p% Not allowed weapon. Read the rules
    Set %KomischerBug% 1
    Set %WaffeVerboten% 0;Set %warnyell% 1;Say %p% was KILLED for using %w%;PlayerSay WARNING: %p% do not use a %w%;PlayerSay WARNING: %p% Please read the !rules;PlayerSay %ChatRules%;PlayerYell %PrivPopupWarnung%;Kill 100
    Set %KomischerBug% 1

#Reminder YELL
On Spawn;If %warnyell% == 1;PlayerYell %PrivPopupWarnung%;Set %warnyell% 0

#!rules function for in-game-chat
On Say; Text !rule,!rulz;MapMode Rush,TeamDeathMatch; Say %ChatRules%
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Mamba334*:

 

OPTION1:

no shotgun on TDM / RUSH mode (copy paste in proconrulz):

Code:

On Kill; MapMode Rush,TeamDeathMatch;Damage Shotgun; Say %p% KILLED for using %w%; Kill 100
OPTION2

and here the complete version with !rules message, warning yell, kill, kick, ban for 1 hour:

Code:

#######  WEAPON RULES - RUSH/TDM only   #######
# !rules Text Template
On Spawn;MapMode Rush,TeamDeathMatch;PlayerFirst
    Set %ChatRules% "RULES: No Shotguns on TDM/Rush"
    Set %PrivPopupWarnung% "RULES: No Shotguns"
    PlayerSay %ChatRules%; PlayerYell %PrivPopupWarnung%;

On Say;MapMode Rush,TeamDeathMatch;PlayerFirst
    Set %ChatRules% "RULES: No Shotguns on TDM/Rush"
    Set %PrivPopupWarnung% "No Shotguns"


# Forbitten Weapons:
On Kill; MapMode Rush,TeamDeathMatch;Damage Shotgun; Set %WaffeVerboten% 1

# Whitelist:
#On Kill;Weapon U_M67,U_Grenade_RGO,U_V40,U_M34,U_M34;Set %WaffeVerboten% 0

# DEBUG - Show WeaponID on suicide:
On Suicide;PlayerSay %p% WeaponID: %wk%

# Admin Actions (warning, kill, kick, ban):
On Kill;if %WaffeVerboten% == 1;
    PlayerCount 4;Set %WaffeVerboten% 0;Set %warnyell% 1;Log %p% was BANNED (1 hour) for using %w%;Say %p% was BANNED by admin for using a %w%;Yell %p% was BANNED for using %w%;TempBan 3600 %p% Not allowed weapon. Read the rules
    Set %KomischerBug% 1
    PlayerCount 2;Set %WaffeVerboten% 0;Set %warnyell% 1;Say %p% was KICKED by admin for using a %w%;Kick %p% Not allowed weapon. Read the rules
    Set %KomischerBug% 1
    Set %WaffeVerboten% 0;Set %warnyell% 1;Say %p% was KILLED for using %w%;PlayerSay WARNING: %p% do not use a %w%;PlayerSay WARNING: %p% Please read the !rules;PlayerSay %ChatRules%;PlayerYell %PrivPopupWarnung%;Kill 100
    Set %KomischerBug% 1

#Reminder YELL
On Spawn;If %warnyell% == 1;PlayerYell %PrivPopupWarnung%;Set %warnyell% 0

#!rules function for in-game-chat
On Say; Text !rule,!rulz;MapMode Rush,TeamDeathMatch; Say %ChatRules%
Thank you so much!
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Mamba334*:

 

Thank you so much!

 

What about this?

 

On Kill;MapMode Rush,TeamDeathMatch;Damage Shotgun;PlayerSay %p% No Shotguns on TDM or Rush. KILLED for using %w%;Kill 100

On Kill;MapMode Rush,TeamDeathMatch;Damage Shotgun;PlayerCount 2;PlayerSay %p% Last warning. No Shotguns on TDM or Rush.;Kill 100

On Kill;MapMode Rush,TeamDeathMatch;Damage Shotgun;PlayerCount 3;Say %p% kicked for using %w%;Kick 100

 

first time, say

second time, kill

third time, kick

 

Does this look right?

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

Originally Posted by ty_ger07*:

 

Thank you so much!

 

What about this?

 

On Kill;MapMode Rush,TeamDeathMatch;Damage Shotgun;PlayerSay %p% No Shotguns on TDM or Rush. KILLED for using %w%;Kill 100

On Kill;MapMode Rush,TeamDeathMatch;Damage Shotgun;PlayerCount 2;PlayerSay %p% Last warning. No Shotguns on TDM or Rush.;Kill 100

On Kill;MapMode Rush,TeamDeathMatch;Damage Shotgun;PlayerCount 3;Say %p% kicked for using %w%;Kick 100

 

first time, say

second time, kill

third time, kick

 

Does this look right?

On Kill;MapMode Rush,TeamDeathMatch;Damage Shotgun;PlayerSay %p% No Shotguns on TDM or Rush. KILLED for using %w%

On Kill;MapMode Rush,TeamDeathMatch;Damage Shotgun;PlayerCount 1;PlayerSay %p% Last warning. No Shotguns on TDM or Rush.;Kill 100

On Kill;MapMode Rush,TeamDeathMatch;Damage Shotgun;PlayerCount 2;Say %p% kicked for using %w%;Kick 100

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

Originally Posted by Longbow830*:

 

Hi all,

 

Ok I have had a server running BF4 for the past few months. Had no problems with proconrulez.. except today I find that proconrulz plugin does not load anymore. Set up a new configuration making sure procon player is selected and that prcon rulez is selected. Saved the configuration but still does not show in Procon when I go to edit server.

 

Any relevant ideas welcome..

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

Originally Posted by Mamba334*:

 

On Kill;MapMode Rush,TeamDeathMatch;Damage Shotgun;PlayerSay %p% No Shotguns on TDM or Rush. KILLED for using %w%

On Kill;MapMode Rush,TeamDeathMatch;Damage Shotgun;PlayerCount 1;PlayerSay %p% Last warning. No Shotguns on TDM or Rush.;Kill 100

On Kill;MapMode Rush,TeamDeathMatch;Damage Shotgun;PlayerCount 2;Say %p% kicked for using %w%;Kick 100

Ok, what is happening is this;

 

1st kill - it kills them and tells them "No Shotguns on TDM or Rush."

2nd kill - it is just repeating and telling them "No Shotguns on TDM or Rush."

3rd kill - no kick. does nothing. It just keeps telling them "No Shotguns on TDM or Rush."

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

Originally Posted by ty_ger07*:

 

Oh, right. You need to reverse the order of rules.

 

 

On Kill;MapMode Rush,TeamDeathMatch;Damage Shotgun;PlayerCount 2;Say %p% kicked for using %w%;Kick

On Kill;MapMode Rush,TeamDeathMatch;Damage Shotgun;PlayerCount 1;PlayerSay %p% Last warning. No Shotguns on TDM or Rush.;Kill

On Kill;MapMode Rush,TeamDeathMatch;Damage Shotgun;PlayerSay %p% No Shotguns on TDM or Rush.

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

Originally Posted by Mamba334*:

 

Oh, right. You need to reverse the order of rules.

 

 

On Kill;MapMode Rush,TeamDeathMatch;Damage Shotgun;PlayerCount 2;Say %p% kicked for using %w%;Kick

On Kill;MapMode Rush,TeamDeathMatch;Damage Shotgun;PlayerCount 1;PlayerSay %p% Last warning. No Shotguns on TDM or Rush.;Kill

On Kill;MapMode Rush,TeamDeathMatch;Damage Shotgun;PlayerSay %p% No Shotguns on TDM or Rush.

Thanks. I hate to be a PTA but the last command "On Kill;MapMode Rush,TeamDeathMatch;Damage Shotgun;PlayerSay %p% No Shotguns on TDM or Rush." Shouldn't ;Kill be at the end? And why do some codes have Kill 100 and some just Kill? I'm just trying to figure this out. Thanks for your help!
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

You said that you didn't want to kill them the first warning. So, there is no kill at the end of the last one.

 

The 100 is number of milliseconds to wait before punishing. There is a default number of milliseconds already built into the plugin. There is no need to have to specify a number other than the default it already uses.

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

Originally Posted by BuRockK*:

 

Could someone tell me whats wrong with this code? It seems my variable changes itself to "0"

 

I have test commands in code also as you can see. After i set %nojoin% to "on" via ingame command, i test it and it stays as "on". Although after someone either joins or spawns, variable changes to "0" for some reason i couldnt understand.

 

This code is suppose to kick anyone who joins or spawns on server who is not admin or in proconrulz protected players or clan list. (I assume every admin in any server would be in that list)

 

Code:

On Say;Admin;Text !testnojoin; PlayerSay No Join Status: %nojoin%
On Say;Admin;Text !resetnojoin; set %nojoin% off;PlayerSay No Join Status was reset: %nojoin%
On Say;Admin;Text !nojoin; if %targettext% == "0";
    if %nojoin% == on;Set %nojoin% off;PlayerSay No Join is now: %nojoin%;end
    if %nojoin% == off;Set %nojoin% on;PlayerSay No Join is now: %nojoin%;end

On Join;Not Protected;if %nojoin% == on; AdminSay No Join Status %nojoin% KICKING %p%; kick Sorry, joins temporarly restricted for clan matches
On Spawn;Not Protected; if %nojoin% == on; AdminSay No Join Status %nojoin% KICKING %p%; kick Sorry, joins temporarly restricted for clan matches
and heres the proconrulz log in plugin console: As far as i can tell it reads %nojoin% variable as something other than "on" (which is 0)

 

23:38:07 20] ProconRulz: Scan_rules[******] with Event Spawn

[23:38:07 20] ProconRulz: scan_rules[******] [On Spawn;Not Protected; if %nojoin% == on; AdminSay No Join Status %nojoin% KICKING %p%; kick Sorry, joins temporarly restricted for clan matches]

[23:38:07 20] ProconRulz: process_rule[******] with event Spawn

[23:38:07 20] ProconRulz: check_condition [******] Not Protected True

[23:38:07 20] ProconRulz: process_parts [******] OK

[23:38:07 20] ProconRulz: check_condition [******] IF %c% is [01]

[23:38:07 20] ProconRulz: check_condition [******] IF %nojoin%,==,on False

[23:38:07 20] ProconRulz: process_rule[******] in rule [On Spawn;Not Protected; if %nojoin% == on; AdminSay No Join Status %nojoin% KICKING %p%; kick Sorry, joins temporarly restricted for clan matches] tests NEGATIVE

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

Originally Posted by ty_ger07*:

 

Change %nojoin% to %server_nojoin% .

 

Without server? before it, the variable only applies to each individual player. (Each player would have their own copy of the variable with different values if server? isn't added) This is explained in the proconrulz documentation linked to in the first post.

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

Originally Posted by BuRockK*:

 

Still not working :/ It did work for the first On Join and On Spawn happened but then it went back to same problem:

 

No Join Status: 0(%server_nojoin%)

 

Code:

On Say;Admin;Text !testnojoin; PlayerSay No Join Status: %server_nojoin%
On Say;Admin;Text !resetnojoin; set %server_nojoin% off;PlayerSay No Join Status was reset: %server_nojoin%
On Say;Admin;Text !nojoin; if %targettext% == 0;
    if %server_nojoin% == on;Set %server_nojoin% off;PlayerSay No Join is now: %server_nojoin%;end
    if %server_nojoin% == off;Set %server_nojoin% on;PlayerSay No Join is now: %server_nojoin%;end

On Join;Not Protected;if %server_nojoin% == on; AdminSay %p% is joining server. Not in Whitelist, KICKING ; kick Sorry, joins temporarly restricted for clan matches
On Join;Protected;if %server_nojoin% == on; Say %p% has joined server. Protected.
On Spawn;Not Protected; if %server_nojoin% == on; AdminSay %p% Spawned. Not in Whitelist, KICKING; kick joins temporarly restricted for clan matches
EDIT:

 

 

hmm.. this is weird. Its working now but not On Join function. That was also working before. I have no idea why this is happening

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

Originally Posted by Borys*:

 

Hi, I have two questions

1. How to switch the code on 1 warning and kick.

2. How to add vip weapon only for the user [user Borys can use shorty]

Thank you for your help, best regards

 

# 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%

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

Originally Posted by MRniceGuy*:

 

Hello

I have this rules in my server

### FUN COMMANDS ###

On Say;Text !tissue

+ TargetPlayer

+ If %p% != %t%

+ Say It's ok now %t%, %p% gave you a tissue... So you can stop crying!

+ TargetAction PlayerYell %p% bought you a tissue to stop crying now!

On Say;Text !cry

+ TargetPlayer

+ If %p% != %t%

+ Say Omg %t% please cry more, %p% wants your delicious tears! NOM NOM NOM

+ TargetAction PlayerYell %p% says your tears are delicious, cry him a river!

On Say;Text !cookie

+ TargetPlayer

+ If %p% != %t%

+ Say %p% got a cookie for you %t%. Now when you have your mouth full, stop whining!

+ TargetAction PlayerYell %p% bought you a cookie to shut your mouth!

On Say;Text !tent

+ TargetPlayer

+ If %p% != %t%

+ Say %p% bought a tent for you %t%, for better camping experience!

+ TargetAction PlayerYell %p% bought you a tent, now you can camp even more!

Its some fun commands for players to use

So i was wondering if it is possible to add more messages under same command

 

For example if you type !cry [player Name] a random message from a list to be triggered. is this possible?

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

Originally Posted by FoxRiverMan*:

 

ColColonCleaner :

 

I bought Loader enforcer yesterday and it working perfect, Now i have new question for proconrulz.

1: I want to limit players KD to 1.5 to my noob server , Which code Should I use ? I can't find any limit KD code in the post .

2: I want to limit shot gun slots to each team have 3 slots just like sniper limits ,My english kinda poor so I can not etid this by my self .

 

Thx My Bro .

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

Originally Posted by BuRockK*:

 

Hello, I renewed my code for join restriction with using ini files instead of simple variables which was resetting to 0 somehow (and on new round start obviously)

 

It detects players who are not in Protected list of ProconRulz and kicks players on spawn (Although i still have set it to kick "on join" it still does not work, or im missing something there).

 

If anyone know how to make on join kick possible pls do so and share..

 

heres the newest version of my Join Restriction script to use in ProconRulz:

 

Code:

#################################################
#
#                    ProconRulz' Whitelist Join Restriction by BuRockK
#
#################################################

##################################################
#    INGAME COMMANDS FOR PLAYERS IN PROTECTED LIST
##################################################

########## Shows the status of the script ON/OFF
########## When used for the first time, it will warn you to use on/off command to configure it first
On Say;Protected;Text !nojoinstatus; if %targettext% == 0;
    if %ini_nojoin_status% == 0; Say Join Restriction Status: Join Restriction is not configured. Type !nojoin to configure.
    if %ini_nojoin_status% == on; Say Join Restriction Status: On;
    if %ini_nojoin_status% == off; Say Join Restriction Status: Off;

########## Changes the status of the script to ON or OFF
########## When used for the first time, it will configure on/off variables. By default it will be OFF.
On Say;Protected;Text !nojoin; if %targettext% == 0;
    if %ini_nojoin_status% == 0; set %ini_nojoin_status% off; Say Join Restriction configured for first use, This script will kick anyone on spawn who is not in Whitelist of ProconRulz plugin. Type !nojoin again to enable.;end
    if %ini_nojoin_status% == off; set %ini_nojoin_status% on; Say Join Restriction is now: On;end
    if %ini_nojoin_status% == on; set %ini_nojoin_status% off; Say Join Restriction is now: Off;end

########## Shows whitelisted players joining
On Join;Protected;
    if %ini_nojoin_status% == on; Say %p% is joining server. Whitelisted.

#############################################
#    RESET UNPROTECTED PLAYER VARS ON NEW ROUND
#############################################
On Round;set %ini_notprotected% 0

###################################
#    FOR STUBBORN KIDS WHO WONT SPAWN
###################################
#On Say;Protected;Text !kick;TargetPlayer;if %ini_nojoin_status% == on;
#    if %targettext% == 0;Say %t% kicked by %p% "reason: Sorry for kicking. server is restricted only to whitelisted players for clan matches" ;TargetAction kick "Sorry for kicking. server is restricted only to whitelisted players for clan matches.";end

############################
#    KICK PLAYERS NOT PROTECTED
############################

########## Sets variable for joining player if the player is not whitelisted
On Join;Not Protected;
    if %ini_nojoin_status% == on; set %ini_notprotected_onjoinkick%p%% %p%; Say %p% is joining server. Not in whitelist, will be kicked...
    if %ini_nojoin_status% == on; if %ini_notprotected_onjoinkick%p%% == %p%; Exec admin.kickPlayer %ini_notprotected_onjoinkick%p%% "Sorry, joins are restricted for clan matches."

########## Kicks player on spawn if the player is not in whitelist
On Spawn;Not Protected;
    if %ini_nojoin_status% == on; if %ini_notprotected_onjoinkick%p%% == 0; Exec admin.kickPlayer %p% "Sorry for kicking. server is restricted only to whitelisted players for clan matches."
    if %ini_nojoin_status% == on; if %ini_notprotected_onjoinkick%p%% == %p%; Exec admin.kickPlayer %ini_notprotected_onjoinkick%p%% "Sorry, joins are restricted for clan matches."
Theres also a code to let protected players !kick players but i disabled it by default. Because youll never know what could happen with such command. If you want you can use it, just delete "#" at the beginning of the lines under "FOR STUBBORN KIDS WHO WONT SPAWN"

 

Apart from this if you have a simple join/leave msg code in your proconrulz you can add "if %ini_nojoin_status% on" to it so your server join msgs wont be effected by this when its not "on"

 

In-Game command:

 

- !nojoin - sets join restriction on/off

- !nojoinstatus - shows the join restriction status

- !kick [playername] - If you ever decide to use

 

 

 

Again, if im missing something in code please say so. so i can make it better. Specially on join kick..

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

Originally Posted by s1ngular1ty*:

 

Hello, I renewed my code for join restriction with using ini files instead of simple variables which was resetting to 0 somehow (and on new round start obviously)

 

It detects players who are not in Protected list of ProconRulz and kicks players on spawn (Although i still have set it to kick "on join" it still does not work, or im missing something there).

 

If anyone know how to make on join kick possible pls do so and share..

 

heres the newest version of my Join Restriction script to use in ProconRulz:

 

Code:

#################################################
#
#                    ProconRulz' Whitelist Join Restriction by BuRockK
#
#################################################

##################################################
#    INGAME COMMANDS FOR PLAYERS IN PROTECTED LIST
##################################################

########## Shows the status of the script ON/OFF
########## When used for the first time, it will warn you to use on/off command to configure it first
On Say;Protected;Text !nojoinstatus; if %targettext% == 0;
    if %ini_nojoin_status% == 0; Say Join Restriction Status: Join Restriction is not configured. Type !nojoin to configure.
    if %ini_nojoin_status% == on; Say Join Restriction Status: On;
    if %ini_nojoin_status% == off; Say Join Restriction Status: Off;

########## Changes the status of the script to ON or OFF
########## When used for the first time, it will configure on/off variables. By default it will be OFF.
On Say;Protected;Text !nojoin; if %targettext% == 0;
    if %ini_nojoin_status% == 0; set %ini_nojoin_status% off; Say Join Restriction configured for first use, This script will kick anyone on spawn who is not in Whitelist of ProconRulz plugin. Type !nojoin again to enable.;end
    if %ini_nojoin_status% == off; set %ini_nojoin_status% on; Say Join Restriction is now: On;end
    if %ini_nojoin_status% == on; set %ini_nojoin_status% off; Say Join Restriction is now: Off;end

########## Shows whitelisted players joining
On Join;Protected;
    if %ini_nojoin_status% == on; Say %p% is joining server. Whitelisted.

#############################################
#    RESET UNPROTECTED PLAYER VARS ON NEW ROUND
#############################################
On Round;set %ini_notprotected% 0

###################################
#    FOR STUBBORN KIDS WHO WONT SPAWN
###################################
#On Say;Protected;Text !kick;TargetPlayer;if %ini_nojoin_status% == on;
#    if %targettext% == 0;Say %t% kicked by %p% "reason: Sorry for kicking. server is restricted only to whitelisted players for clan matches" ;TargetAction kick "Sorry for kicking. server is restricted only to whitelisted players for clan matches.";end

############################
#    KICK PLAYERS NOT PROTECTED
############################

########## Sets variable for joining player if the player is not whitelisted
On Join;Not Protected;
    if %ini_nojoin_status% == on; set %ini_notprotected_onjoinkick%p%% %p%; Say %p% is joining server. Not in whitelist, will be kicked...
    if %ini_nojoin_status% == on; if %ini_notprotected_onjoinkick%p%% == %p%; Exec admin.kickPlayer %ini_notprotected_onjoinkick%p%% "Sorry, joins are restricted for clan matches."

########## Kicks player on spawn if the player is not in whitelist
On Spawn;Not Protected;
    if %ini_nojoin_status% == on; if %ini_notprotected_onjoinkick%p%% == 0; Exec admin.kickPlayer %p% "Sorry for kicking. server is restricted only to whitelisted players for clan matches."
    if %ini_nojoin_status% == on; if %ini_notprotected_onjoinkick%p%% == %p%; Exec admin.kickPlayer %ini_notprotected_onjoinkick%p%% "Sorry, joins are restricted for clan matches."
Theres also a code to let protected players !kick players but i disabled it by default. Because youll never know what could happen with such command. If you want you can use it, just delete "#" at the beginning of the lines under "FOR STUBBORN KIDS WHO WONT SPAWN"

 

Apart from this if you have a simple join/leave msg code in your proconrulz you can add "if %ini_nojoin_status% on" to it so your server join msgs wont be effected by this when its not "on"

 

In-Game command:

 

- !nojoin - sets join restriction on/off

- !nojoinstatus - shows the join restriction status

- !kick [playername] - If you ever decide to use

 

 

 

Again, if im missing something in code please say so. so i can make it better. Specially on join kick..

Kicking on join is not reliable. You should kick on spawn. Kicking on join is difficult to do. Give up trying to kick on join.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ColColonCleaner*:

 

Kicking on join is not reliable. You should kick on spawn. Kicking on join is difficult to do. Give up trying to kick on join.

Kick on join is easy if you watch the player list, but I don't think proconrulz does that. In InsaneLimits and AdKats we just watch the player list for when a player enters it and consider that the join event, always been reliable. We rarely actually watch the join or authenticate events, although i think there is an IL option for that too.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by s1ngular1ty*:

 

Kick on join is easy if you watch the player list, but I don't think proconrulz does that. In InsaneLimits and AdKats we just watch the player list for when a player enters it and consider that the join event, always been reliable. We rarely actually watch the join or authenticate events, although i think there is an IL option for that too.

I tried using a kick on join with insane limits and it only worked half the time at best. I think you are being to optimistic. Kick on spawn always works.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ColColonCleaner*:

 

I tried using a kick on join with insane limits and it only worked half the time at best. I think you are being to optimistic. Kick on spawn always works.

Ah interesting, i guess IL join doesn't work the way i originally thought.

 

So how do you solve the problem of people just sitting in the spawn screen without spawning? We have our autoadmin internal to AdKats and that watches the player list for joins, which covers both cases.

 

I forget, does IL have an onplayerlist event you can watch?

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

Originally Posted by s1ngular1ty*:

 

Ah interesting, i guess IL join doesn't work the way i originally thought.

 

So how do you solve the problem of people just sitting in the spawn screen without spawning? We have our autoadmin internal to AdKats and that watches the player list for joins, which covers both cases.

 

I forget, does IL have an onplayerlist event you can watch?

I'm not sure. I think the issue with Insane Limits was I was kicking based on clan tag and it takes some time for that to update for each player which caused the kick on join to fail.

 

I agree you could watch OnListPlayers event in a custom plugin and do this if it is true that a player is in a kickable state by the time this event fires. The problem I've seen is that the time it takes a player to join is highly variable which affects the time it takes from when they start joining to when they are kickable by any means. If you try to kick too soon after join the kick will just fail. If you wait too long the player might have already finished joining and spawned.

 

I know I was having issues getting this to work with Insane Limits and custom plugins I've written for my servers which is why I resorted to kick on spawn which always works.

 

I'll have to test using the OnListPlayers event for this. It may work fine.

 

Edit:

 

I tested using OnListPlayers and it seems to work. I was able to spawn sometimes before being kicked though.

* 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.