Jump to content

[BF4] voteban function > proconrulz > !voteban for in-game-chat + admin protection


ImportBot

Recommended Posts

Originally Posted by maxdralle*:

 

PROCONRULZ > BF4 > !voteban function

 

here is my !voteban function for bf4. this code works in proconrulz. any player can start a voteban by type "!VOTEBAN PLAYERNAME" in the bf4 in-game-chat. the voteban needs a yes votes from 25% from all player in 300 seconds to ban the bad player.

 

 

INSTALLATION

copy and paste the code in proconrulz.

if you want, you can give players a voteban protection (e.g. admins, vips). put the playername in the %clan_list%

 

 

HOW TO USE

any player in bf4 can start a voteban by type "!voteban playername" in the in-game-chat.

the voteban needs a yes votes from 25% from all player in 300 seconds to ban the bad player for 1 day.

 

 

PROCONRULZ CODE

Code:

###### 9.1 > !voteban <playername>  (Timeout 300Sec. - 1 day time ban)    ###############

# SETTINGS: %voteban_enable_min_players%, %voteban_min_votes_to_kick%, %server_vip_list%

# INFO: In this list you can put bf4 playernames with voteban protection (admins):
On Say; ServerFirst; Set %server_vip_list% "@@SuperSniper@@BigBoyBerlin@@TopCamper0815@@LostFluppy1984@@"

#VIP SLOT PLUGIN - vip player votekick protection
On Spawn; PlayerFirst; if %ini_vipslotmanager_%p%% != 0; Set %server_vip_list% %server_vip_list% %p%@@


On Say;Text !voteban,!votekick,!yes,!no;
    If %voteban_mylastvoteban_vote_time% != %server_global_voteban_vote_time%; Set %voteban_vote_reg% 0

# INFO: Initiate a voteban after in-game-chat request (!voteban playername):
On Say;Text !voteban,!votekick;
    PlayerFirst; Set %voteban_enable_min_players% 7
    Set %tmp_players_online% %ts1% + %ts2%
    Set %voteban_min_votes_to_kick% 6
    if %tmp_players_online% > 18; Set %voteban_min_votes_to_kick% 8
    if %tmp_players_online% > 24; Set %voteban_min_votes_to_kick% 10
    if %tmp_players_online% > 30; Set %voteban_min_votes_to_kick% 12
    if %tmp_players_online% > 50; Set %voteban_min_votes_to_kick% 14
    Set %tmp_admin_cmd_stopper% 0; 
    If %server_global_voteban_vote_on% == 1; If %tmp_admin_cmd_stopper% != 1; Say !voteban %server_voteban_votetarget% in progress. Type !yes OR !no; Say YES (%server_votebans_yes_vote%)  NO (%server_votebans_no_vote%)  REQ (%server_voteban_votesneeded%);
    If %server_global_voteban_vote_on% != 1; If %tmp_admin_cmd_stopper% != 1; If %tmp_players_online% < %voteban_enable_min_players%; Say !voteban disabled! (min. %voteban_enable_min_players% players required); Set %tmp_admin_cmd_stopper% 1
    If %server_global_voteban_vote_on% != 1; If %tmp_admin_cmd_stopper% != 1; If %tmp_players_online% >= %voteban_enable_min_players%; If %targettext% != none; If %targettext% != %p%; If %targettext% != 0; Set %server_voteban_votesneeded% %voteban_min_votes_to_kick%; Set %server_voteban_votetarget% none;TargetPlayer; Set %server_voteban_votetarget% %t%; If %server_voteban_votetarget% != none; If %server_voteban_votetarget% != %p%; If %server_voteban_votetarget% != 0; Not If %server_vip_list% contains @@%server_voteban_votetarget%@@; If %my_votespam_counter% < 2; Set %server_global_voteban_vote_time% %seconds%; Set %server_global_voteban_vote_on% 1; Set %voteban_vote_reg% 0; Set %server_votebans_yes_vote% 0; Set %server_votebans_no_vote% 0; Say ###########################; Say ###########################; Say #######         VOTEBAN        #######; Say ###########################; Yell 25 !voteban %server_voteban_votetarget% > Vote by type !yes OR !no; Say %p% initiate a vote to ban %server_voteban_votetarget% - Vote by type !yes OR !no; Incr %my_votespam_counter%; Log [^b^8!voteban^0^n] %p% initiate a vote to ban ^b^8%server_voteban_votetarget%^0^n  -  Players total: %tmp_players_online%  -  Votes req.: %voteban_min_votes_to_kick%
    If %server_global_voteban_vote_on% != 1; If %tmp_admin_cmd_stopper% != 1; If %tmp_players_online% >= %voteban_enable_min_players%; If %server_voteban_votetarget% != none; If %server_voteban_votetarget% != %p%; If %server_voteban_votetarget% != 0; If %server_vip_list% contains @@%server_voteban_votetarget%@@; Say !voteban %server_voteban_votetarget% CANCELED (!VIP SLOT players are protected); Incr %my_votespam_counter%
    If %server_global_voteban_vote_on% != 1; If %tmp_admin_cmd_stopper% != 1; If %tmp_players_online% >= %voteban_enable_min_players%; If %server_voteban_votetarget% != none; If %server_voteban_votetarget% != %p%; If %server_voteban_votetarget% != 0; Incr %my_votespam_counter%; If %my_votespam_counter% > 3; Say %p% you can NOT start a !voteban again (spam protection); PlayerCount 1; PlayerSay %p% stop your !voteban spam! Next time KICK; PlayerYell %p% stop your !voteban spam! Next time KICK; Kill 100; PlayerCount 4; Say %p% KICKED !voteban spam; Kick %p% KICKED for !voteban spam; 
    Set %tmp_vb_error% 1; If %server_voteban_votetarget% != none; If %server_voteban_votetarget% != 0; If %server_voteban_votetarget% != %p%; Set %tmp_vb_error% 0
    if %tmp_vb_error% == 1; If %tmp_admin_cmd_stopper% != 1; PlayerSay ERROR: Playername not found. Just type ANY UNIQUE part of the name e.g. !voteban <playername>

# INFO: count yes votes. ban the voted player for 1 day (86400 seconds) 
On Say;Text !yes;If %server_global_voteban_vote_on% == 1;
    If %voteban_vote_reg% == 1;PlayerSay Your vote is already registered; PlayerSay YES (%server_votebans_yes_vote%)  NO (%server_votebans_no_vote%)  REQ (%server_voteban_votesneeded%)
    If %voteban_vote_reg% != 1; Incr %server_votebans_yes_vote%;Say !voteban %server_voteban_votetarget% > Type !yes OR !no; Say YES (%server_votebans_yes_vote%)  NO (%server_votebans_no_vote%)  REQ (%server_voteban_votesneeded%); PlayerSay %p% thanks for your vote; Set %voteban_vote_reg% 1; Set %voteban_mylastvoteban_vote_time% %server_global_voteban_vote_time%; 
    If %server_votebans_yes_vote% >= %server_voteban_votesneeded%; Yell %server_voteban_votetarget% BANNED for 1 day by vote; Log ^b^8[!voteban] %server_voteban_votetarget% BANNED for 1 day by vote^0^n; Say %server_voteban_votetarget% BANNED for 1 day by vote; Set %voteban_vote_reg% 0; Set %server_global_voteban_vote_on% 0; TargetPlayer %server_voteban_votetarget%;TargetAction TempBan 86400 %server_voteban_votetarget% > banned 1 day by vote; Set %server_voteban_votetarget% none; 

# INFO: votes to not ban
On Say;Text !no;If %server_global_voteban_vote_on% == 1;
    If %voteban_vote_reg% == 1;PlayerSay Your vote is already registered; PlayerSay YES (%server_votebans_yes_vote%)  NO (%server_votebans_no_vote%)  REQ (%server_voteban_votesneeded%)
    If %voteban_vote_reg% != 1;Incr %server_votebans_no_vote% ;Say !voteban %server_voteban_votetarget% > Type !yes OR !no; Say YES (%server_votebans_yes_vote%)  NO (%server_votebans_no_vote%)  REQ (%server_voteban_votesneeded%); PlayerSay %p% thanks for your vote; Set %voteban_vote_reg% 1; Set %voteban_mylastvoteban_vote_time% %server_global_voteban_vote_time%
    If %server_votebans_no_vote% >= %server_voteban_votesneeded%; Say !voteban %server_voteban_votetarget% CANCELED by vote; Set %server_voteban_votetarget% none; Set %voteban_vote_reg% 0; Set %server_global_voteban_vote_on% 0

# INFO: Stop voteban after 300Sec. (need a kill-event for reset)
On Spawn; If %server_global_voteban_vote_on% == 1; If %server_global_voteban_vote_time% + 300 < %seconds%; Say !voteban %server_voteban_votetarget% FAILED (timeout, player will stay); Set %server_voteban_votetarget% none; Set %voteban_vote_reg% 0; Set %server_global_voteban_vote_on% 0
On Leave; If %server_global_voteban_vote_on% == 1; If %server_voteban_votetarget% == %p%;Say !voteban %server_voteban_votetarget% CANCELED (player left the server); Set %server_voteban_votetarget% none; Set %voteban_vote_reg% 0; Set %server_global_voteban_vote_on% 0

###   !voteban END    ###
CHANGELOG:

15.06.2017 removed votes in percentage. add spam protection

04.10.2016 count yes votes in percentage

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

Originally Posted by Crowdy*:

 

@Tubbs02:

 

1) Download (link below) and install 'ProconRulz V44j1'-Plugin to your ProconLayer

 

myrcon.net/.../proconrulz-v44j1-weapon-limits-and-other-event-triggered-admin-actions

 

2) Download voteban_function.txt (attachment below) and copy it to your 'Plugins/BF4' folder

 

voteban_function.txt

 

3) Start procon client, go to tab "Plugins"

 

4) mark ProconRulz, click on tab "Plugin Settings"

4.1) mark row "Rulz.txt filenames

4.2) click on the three point button [...] to oben array editor (1 in screenshot)

4.3) hit return to create a new line

4.4) write the following line: voteban_function.txt

4.5) click 'OK'

5) enable ProconRulz with checkbox (2 in screenshot)

 

voteban_funtion.PNG

 

should be work

 

cheers

 

//Crowdy

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

Originally Posted by SmackDaddy*:

 

I am sorry for this noobish questions, but where it says "if you want, you can give players a voteban protection (e.g. admins, vips). put the playername in the %VIPList%" -- how do I do that? Is that automatically done by having folks in the Reserved Slot list in procon? If not, then how do I add people to this VIP list?

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

Originally Posted by BuRockK*:

 

I am sorry for this noobish questions, but where it says "if you want, you can give players a voteban protection (e.g. admins, vips). put the playername in the %VIPList%" -- how do I do that? Is that automatically done by having folks in the Reserved Slot list in procon? If not, then how do I add people to this VIP list?

You add names manually into the code. So if anyone plans on keep adding or removing new Admins or whoever to be protected from this voteban rule alot, i suggest copy the entire code to "Rules" list and not the "Rulz.txt filenames".

 

To add Playernames who will be protected from this rule, find the code part shown below in the original code (at the beginning) and simply add names to the code shown below. I colored the names in red so you know where to add them. Put "@@" between every name you add.

 

Code:

# INFO: In this list you can put bf4 playernames with voteban protection (admins):
On Spawn;PlayerFirst;
    Set %VIPList% "@@SuperSniper@@BigBoyBerlin@@TopCamper0815@@LostFluppy1984@@"
    Set %VotebanTimeoutSec% 60
    Set %server_votesneeded% 5
* Restored post. It could be that the author is no longer active.
Link to comment
  • 4 months later...

Originally Posted by MrBird*:

 

Hi guys,

 

Can the name of the player that initiated the voteban and the reason for initiating the vote be included in the ban too? for eg, if I initiate "!voteban rockk hacker", can the reason for the ban as appears to the voteban target be shown as "Banned by vote initiated by MrBird for hacking"? I would guess to include the initiator's name would be to include %p%? but what about the ban reason?

 

Thanks!

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

Originally Posted by maxdralle*:

 

Hi guys,

Can the name of the player that initiated the voteban and the reason for initiating the vote be included in the ban too? for eg, if I initiate "!voteban rockk hacker", can the reason for the ban as appears to the voteban target be shown as "Banned by vote initiated by MrBird for hacking"? I would guess to include the initiator's name would be to include %p%? but what about the ban reason?

Thanks!

here is a version of !voteban for proconrulz

 

Code:

###### 9.1 > !voteban <playername> <reason> (min. 25% !yes Votes, Timeout 300Sec.)    ###############
# SETTINGS: %voteban_enable_min_players%, %voteban_min_votes_to_ban%

# INFO: In this list you can put bf4 playernames with voteban protection (admins):
On Say; PlayerFirst; 
    Set %vip_liste% "@@SuperSniper@@BigBoyBerlin@@TopCamper0815@@LostFluppy1984@@"

On Say;Text !voteban,!votekick,!ban!,kick,!yes,!no;
    If %voteban_mylastvoteban_vote_time% != %server_global_voteban_vote_time%;Set %voteban_vote_reg% 0

# INFO: Initiate a voteban after in-game-chat request (!voteban playername):
On Say;Text !voteban,!ban,!votekick,!kick;
    PlayerFirst; Set %voteban_enable_min_players% 6
    Set %voteban_min_votes_to_ban% %ts1% + %ts2% / 4; Incr %voteban_min_votes_to_ban%
    if %voteban_min_votes_to_ban% < 4; Set %voteban_min_votes_to_ban% 4
    Set %tmp_admin_cmd_stopper% 0; Admin; Text !kick,!ban; Set %tmp_admin_cmd_stopper% 1
    If %server_global_voteban_vote_on% == 1; if %tmp_admin_cmd_stopper% != 1; Say !voteban %server_voteban_votetarget% in progress. Type !yes OR !no; Say YES (%server_votebans_yes_vote%)  NO(%server_votebans_no_vote%)  REQ (%server_voteban_votesneeded%);
    If %server_global_voteban_vote_on% != 1; if %tmp_admin_cmd_stopper% != 1; If %ts1% + %ts2% < %voteban_enable_min_players%; Say !voteban disabled! (min. %voteban_enable_min_players% players required)
    If %server_global_voteban_vote_on% != 1; if %tmp_admin_cmd_stopper% != 1; If %ts1% + %ts2% >= %voteban_enable_min_players%; Set %server_voteban_votesneeded% %voteban_min_votes_to_ban%;Set %server_voteban_votetarget% none;TargetPlayer;Set %server_voteban_votetarget% %t%;If %server_voteban_votetarget% != none; Not If %vip_liste% contains @@%server_voteban_votetarget%@@; Set %server_global_voteban_vote_time% %seconds%;Set %server_global_voteban_vote_on% 1;Set %voteban_vote_reg% 0;Set %server_votebans_yes_vote% 0; Set %server_votebans_no_vote% 0; Say ###########################;Say ###########################;Say #######         VOTEBAN        #######;Say ###########################;Yell voteban %server_voteban_votetarget% > Vote by type !yes OR !no; Say %p% initiate a vote to ban %server_votetarget% (reason: %targettext%); Say !voteban %server_voteban_votetarget% > Vote by type !yes OR !no; Log [ProconRulz][!voteban] %p% initiate a vote to ban %server_votetarget% (reason: %targettext%)
    If %server_global_voteban_vote_on% != 1; if %tmp_admin_cmd_stopper% != 1; If %ts1% + %ts2% >= %voteban_enable_min_players%; If %vip_liste% contains @@%server_voteban_votetarget%@@;Say !voteban %server_voteban_votetarget% CANCELED (player is protected)
    If %server_voteban_votetarget% == none; if %tmp_admin_cmd_stopper% != 1; PlayerSay ERROR: Playername not found. Just type ANY UNIQUE part of the name e.g. !voteban <playername> <reason>

# INFO: Ban the voted player for 3 hour (10800 seconds) after 25% yes votes
On Say;Text !yes;If %server_global_voteban_vote_on% == 1;
    If %voteban_vote_reg% == 1;PlayerSay Your vote is already registered; PlayerSay YES (%server_votebans_yes_vote%)  NO(%server_votebans_no_vote%)  REQ (%server_voteban_votesneeded%)
    If %voteban_vote_reg% != 1;Incr %server_votebans_yes_vote%;Say !voteban %server_voteban_votetarget% > Type !yes OR !no; Say YES (%server_votebans_yes_vote%)  NO(%server_votebans_no_vote%)  REQ (%server_voteban_votesneeded%); PlayerSay %p% thanks for your vote; Set %voteban_vote_reg% 1;Set %voteban_mylastvoteban_vote_time% %server_global_voteban_vote_time%
    If %server_votebans_yes_vote% >= %server_voteban_votesneeded%;Yell %server_voteban_votetarget% BANNED for 3 hours by vote;Say %server_voteban_votetarget% BANNED for 3 hours by vote; Log [ProconRulz][!voteban] %server_voteban_votetarget% BANNED for 3 hours by vote; Set %voteban_vote_reg% 0;Set %server_global_voteban_vote_on% 0;Set %server_voteban_votetarget% none; TargetPlayer %server_voteban_votetarget%;TargetAction TempBan 10800 banned 3 hours by vote


# INFO: votes to not ban
On Say;Text !no;If %server_global_voteban_vote_on% == 1;
    If %voteban_vote_reg% == 1;PlayerSay Your vote is already registered; PlayerSay YES (%server_votebans_yes_vote%)  NO(%server_votebans_no_vote%)  REQ (%server_voteban_votesneeded%)
    If %voteban_vote_reg% != 1;Incr %server_votebans_no_vote% ;Say !voteban %server_voteban_votetarget% > Type !yes OR !no; Say YES (%server_votebans_yes_vote%)  NO(%server_votebans_no_vote%)  REQ (%server_voteban_votesneeded%); PlayerSay %p% thanks for your vote; Set %voteban_vote_reg% 1;Set %voteban_mylastvoteban_vote_time% %server_global_voteban_vote_time%

# INFO: Stop voteban after 300Sec. (need a kill-event for reset)
On Spawn;If %server_global_voteban_vote_on% == 1;If %server_global_voteban_vote_time% + 300 < %seconds%;Say !voteban %server_voteban_votetarget% FAILED (timeout, player will stay);Set %server_voteban_votetarget% none;Set %voteban_vote_reg% 0;Set %server_global_voteban_vote_on% 0
On Leave;If %server_global_voteban_vote_on% == 1;If %server_voteban_votetarget% == %p%;Say !voteban %server_voteban_votetarget% CANCELED (Player left the server);Set %server_voteban_votetarget% none;Set %voteban_vote_reg% 0;Set %server_global_voteban_vote_on% 0

###### !voteban END    ###############
* Restored post. It could be that the author is no longer active.
Link to comment
  • 8 months later...

Originally Posted by CEBEP78*:

 

@maxdralle

Hi, can I have the ability to do by percentage of players on the server? After all, it will be more convenient if there are 20 players on the server, then 15% of the votes are YES, of their number, if 64 players, then 15% is enough, but when there are 64 people on the server, the votes are very fast.

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

Originally Posted by maxdralle*:

 

@maxdralle

Hi, can I have the ability to do by percentage of players on the server? After all, it will be more convenient if there are 20 players on the server, then 15% of the votes are YES, of their number, if 64 players, then 15% is enough, but when there are 64 people on the server, the votes are very fast.

the calculation of the percentage is sometimes a little bit buggy in proconrulz. but with the following version you can set the min. votes dependent on the # of players.

this version includes also a spam protections :smile:

 

Code:

###### 9.1 > !voteban <playername>  (Timeout 300Sec. - 1 day time ban)    ###############

# SETTINGS: %voteban_enable_min_players%, %voteban_min_votes_to_ban%

# INFO: In this list you can put bf4 playernames with voteban protection (admins):
On Say; ServerFirst; Set %server_vip_list% "@@SuperSniper@@BigBoyBerlin@@TopCamper0815@@LostFluppy1984@@"

On Say;Text !voteban,!votekick,!ban!,kick,!yes,!no;
    If %voteban_mylastvoteban_vote_time% != %server_global_voteban_vote_time%; Set %voteban_vote_reg% 0

# INFO: Initiate a voteban after in-game-chat request (!voteban playername):
On Say;Text !voteban,!ban,!votekick,!kick;
    PlayerFirst; Set %voteban_enable_min_players% 7
    Set %tmp_players_online% %ts1% + %ts2%
    Set %voteban_min_votes_to_kick% 6
    if %tmp_players_online% > 18; Set %voteban_min_votes_to_kick% 8
    if %tmp_players_online% > 24; Set %voteban_min_votes_to_kick% 10
    if %tmp_players_online% > 30; Set %voteban_min_votes_to_kick% 12
    if %tmp_players_online% > 50; Set %voteban_min_votes_to_kick% 14
    Set %tmp_admin_cmd_stopper% 0; Admin; Text !kick,!ban; Set %tmp_admin_cmd_stopper% 1
    If %server_global_voteban_vote_on% == 1; If %tmp_admin_cmd_stopper% != 1; Say !voteban %server_voteban_votetarget% in progress. Type !yes OR !no; Say YES (%server_votebans_yes_vote%)  NO (%server_votebans_no_vote%)  REQ (%server_voteban_votesneeded%);
    If %server_global_voteban_vote_on% != 1; If %tmp_admin_cmd_stopper% != 1; If %tmp_players_online% < %voteban_enable_min_players%; Say !voteban disabled! (min. %voteban_enable_min_players% players required)
    If %server_global_voteban_vote_on% != 1; If %tmp_admin_cmd_stopper% != 1; If %tmp_players_online% >= %voteban_enable_min_players%; If %targettext% != none; If %targettext% != %p%; If %targettext% != 0; Set %server_voteban_votesneeded% %voteban_min_votes_to_kick%; Set %server_voteban_votetarget% none;TargetPlayer; Set %server_voteban_votetarget% %t%; If %server_voteban_votetarget% != none; If %server_voteban_votetarget% != %p%; If %server_voteban_votetarget% != 0; Not If %server_vip_list% contains @@%server_voteban_votetarget%@@; If %my_votespam_counter% < 2; Set %server_global_voteban_vote_time% %seconds%; Set %server_global_voteban_vote_on% 1; Set %voteban_vote_reg% 0; Set %server_votebans_yes_vote% 0; Set %server_votebans_no_vote% 0; Say ###########################; Say ###########################; Say #######         VOTEBAN        #######; Say ###########################; Yell !voteban %server_voteban_votetarget% > Vote by type !yes OR !no; Say %p% initiate a vote to ban %server_voteban_votetarget% - Vote by type !yes OR !no; Incr %my_votespam_counter%; Log [^b^8!voteban^0^n] %p% initiate a vote to ban ^b^8%server_voteban_votetarget%^0^n  -  Players total: %tmp_players_online%  -  Votes req.: %voteban_min_votes_to_kick%
    If %server_global_voteban_vote_on% != 1; If %tmp_admin_cmd_stopper% != 1; If %tmp_players_online% >= %voteban_enable_min_players%; If %server_voteban_votetarget% != none; If %server_voteban_votetarget% != %p%; If %server_voteban_votetarget% != 0; If %server_vip_list% contains @@%server_voteban_votetarget%@@; Say !voteban %server_voteban_votetarget% CANCELED (!VIP SLOT players are protected); Incr %my_votespam_counter%
    If %server_global_voteban_vote_on% != 1; If %tmp_admin_cmd_stopper% != 1; If %tmp_players_online% >= %voteban_enable_min_players%; If %server_voteban_votetarget% != none; If %server_voteban_votetarget% != %p%; If %server_voteban_votetarget% != 0; Incr %my_votespam_counter%; If %my_votespam_counter% > 3; Say %p% you can NOT start a !voteban again (spam protection); PlayerCount 2; PlayerSay %p% stop your !voteban spam! Next time KICK; Kill; PlayerCount 4; Say %p% KICKED !voteban spam; Kick %p% KICKED for !voteban spam; 
    If %server_voteban_votetarget% == none; If %tmp_admin_cmd_stopper% != 1; PlayerSay ERROR: Playername not found. Just type ANY UNIQUE part of the name e.g. !voteban <playername>

# INFO: Ban the voted player for 1 day (86400 seconds)
On Say;Text !yes;If %server_global_voteban_vote_on% == 1;
    If %voteban_vote_reg% == 1;PlayerSay Your vote is already registered; PlayerSay YES (%server_votebans_yes_vote%)  NO (%server_votebans_no_vote%)  REQ (%server_voteban_votesneeded%)
    If %voteban_vote_reg% != 1; Incr %server_votebans_yes_vote%;Say !voteban %server_voteban_votetarget% > Type !yes OR !no; Say YES (%server_votebans_yes_vote%)  NO (%server_votebans_no_vote%)  REQ (%server_voteban_votesneeded%); PlayerSay %p% thanks for your vote; Set %voteban_vote_reg% 1; Set %voteban_mylastvoteban_vote_time% %server_global_voteban_vote_time%; 
    If %server_votebans_yes_vote% >= %server_voteban_votesneeded%; Yell %server_voteban_votetarget% BANNED for 1 day by vote; Log ^b^8[!voteban] %server_voteban_votetarget% BANNED for 1 day by vote^0^n; Say %server_voteban_votetarget% BANNED for 1 day by vote; Set %voteban_vote_reg% 0; Set %server_global_voteban_vote_on% 0; TargetPlayer %server_voteban_votetarget%;TargetAction TempBan 86400 %server_voteban_votetarget% > banned for 1 day by vote; Set %server_voteban_votetarget% none; 

# INFO: votes to not ban
On Say;Text !no;If %server_global_voteban_vote_on% == 1;
    If %voteban_vote_reg% == 1;PlayerSay Your vote is already registered; PlayerSay YES (%server_votebans_yes_vote%)  NO (%server_votebans_no_vote%)  REQ (%server_voteban_votesneeded%)
    If %voteban_vote_reg% != 1;Incr %server_votebans_no_vote% ;Say !voteban %server_voteban_votetarget% > Type !yes OR !no; Say YES (%server_votebans_yes_vote%)  NO (%server_votebans_no_vote%)  REQ (%server_voteban_votesneeded%); PlayerSay %p% thanks for your vote; Set %voteban_vote_reg% 1; Set %voteban_mylastvoteban_vote_time% %server_global_voteban_vote_time%
    If %server_votebans_no_vote% >= %server_voteban_votesneeded%; Say !voteban %server_voteban_votetarget% CANCELED by vote; Set %server_voteban_votetarget% none; Set %voteban_vote_reg% 0; Set %server_global_voteban_vote_on% 0

# INFO: Stop voteban after 300Sec. (need a kill-event for reset)
On Spawn; If %server_global_voteban_vote_on% == 1; If %server_global_voteban_vote_time% + 300 < %seconds%; Say !voteban %server_voteban_votetarget% FAILED (timeout, player will stay); Set %server_voteban_votetarget% none; Set %voteban_vote_reg% 0; Set %server_global_voteban_vote_on% 0
On Leave; If %server_global_voteban_vote_on% == 1; If %server_voteban_votetarget% == %p%;Say !voteban %server_voteban_votetarget% CANCELED (player left the server); Set %server_voteban_votetarget% none; Set %voteban_vote_reg% 0; Set %server_global_voteban_vote_on% 0

#VIP SLOT PLUGIN - vip player votekick protection
On Spawn; PlayerFirst; if %ini_vipslotmanager_%p%% != 0; Set %server_vip_list% %server_vip_list% %p%@@

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

Archived

This topic is now archived and is closed to further replies.



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