Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11
    Quote Originally Posted by SmackDaddy View Post
    BuRockK - thank you very much for the info!
    youre welcome

  2. #12
    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!

  3. #13
    Senior Member
    Join Date
    Oct 2015
    Location
    Germany
    Posts
    219
    Quote Originally Posted by MrBird View Post
    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 <playername> <reason> 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    ###############
    Last edited by maxdralle; 16-09-2016 at 08:44.

  4. #14
    oh wow awesome. I'll try it out and see how it goes. Thank you so much maxdralle!

  5. #15
    Hi Maxdrelle, it seems to be working fine. Thanks!

  6. #16
    @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.

  7. #17
    Senior Member
    Join Date
    Oct 2015
    Location
    Germany
    Posts
    219
    Quote Originally Posted by CEBEP78 View Post
    @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

    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    ###
    Last edited by maxdralle; 15-06-2017 at 02:02.
    Developer of the VIP Slot Manager Plugin

 

 

Tags for this Thread

Posting Permissions

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