Raised This Month: $535 Target: $400
 133% 

[L4D2] IVote (Kick, Ban, Slay) [v1.1 | 9 June 2021]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
pan0s
Member
Join Date: Nov 2017
Plugin ID:
7648
Plugin Version:
1.1
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 05-22-2021 , 16:15   [L4D2] IVote (Kick, Ban, Slay) [v1.1 | 9 June 2021]
    Reply With Quote #1

    Description:
    Imitate sourcemod admin vote for all players.
    Name:  ivote (1).jpg
Views: 1660
Size:  46.9 KB

    Update Log:
    Code:
    v1.1 (6 June 2021)
    - Fixed CPrintToChat error.
    v1.0 (23 May 2021)
    - Initialize plugin
    Features:
    • 3 votes in one plugin (Kick, Ban, Slay, and Change Map(TODO: Not finished. Finish it if anyone has time))
    • Show who agrees the vote
    • Show agreement percentage of the vote
    • Multiple Language supported
    • Imitate sourcemod vote
    • Action log
    • Player list filter


    How to use?
    • Type !ivote to open vote menu

    ConVars:
    PHP Code:
    // This file was auto-generated by SourceMod (v1.10.0.6494)
    // ConVars for plugin "l4d2_ivote.smx"


    // Filter BOT in the players list (bot_included > 0 only)
    // 0=Off, 1=Survivor, 2=Infected
    // -
    // Default: "2"
    // Minimum: "0.000000"
    // Maximum: "2.000000"
    l4d2_botFilter "2"

    // Is vote slay on?
    // 0=Off, 1=On but not included in kick and ban vote list. 2=On all.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "2.000000"
    l4d2_botIncluded "1"

    // Is vote ban (15min.) on?
    // 0=Off, 1=On
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d2_ivoteBanOn "1"

    // Is vote kick on?
    // 0=Off, 1=On
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d2_ivoteKickOn "1"

    // (NOT FINISHED) Is vote map on?
    // 0=Off, 1=On
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "0.000000"
    l4d2_ivoteMapOn "0"

    // Is vote slay on?
    // 0=Off, 1=On
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d2_ivoteSlayOn "1"

    // L4D2 ivote version
    // -
    // Default: "v1.0"
    l4d2_ivote_version "v1.0"

    // percent required for successful kick vote
    // -
    // Default: "0.60"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d2_passPercentage "0.60"

    // Is vote slay on?
    // 0=Off, 1=On
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d2_selfIncluded "1"

    // Will different team players not be included in the players list?
    // 0=Off, 1=On
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d2_teamFilter "1"

    // What is the cool down time of each vote for every player?
    // -
    // Default: "30.0"
    // Minimum: "0.000000"
    l4d2_vote_cd "30.0" 
    Notice:
    If you found anybugs, please feel free to let me know.

    Pre-Installation:
    Nope.

    Installation:
    Just unzip it to the sourcemod directory.

    Translations:
    Only en, zho, chi
    Attached Files
    File Type: zip l4d2_ivote_v1.1.zip (27.1 KB, 317 views)
    __________________

    Last edited by pan0s; 03-24-2022 at 09:18.
    pan0s is offline
    VladimirTk
    Senior Member
    Join Date: Apr 2021
    Location: Perú - Latino América
    Old 06-08-2021 , 19:58   Re: [L4D2] IVote (Kick, Ban, Slay) [v1.0 | 23 May 2021]
    Reply With Quote #2

    This I register in console and in the error log good complement excuse my bad english
    L 06/08/2021 - 17:56:04: Error log file session closed.
    L 06/08/2021 - 17:56:51: SourceMod error session started
    L 06/08/2021 - 17:56:51: Info (map "c2m2_fairgrounds") (file "C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\logs\errors_202 10608.log")
    L 06/08/2021 - 17:56:51: [SM] Exception reported: Invalid client index -2
    L 06/08/2021 - 17:56:51: [SM] Blaming: l4d2_ivote.smx
    L 06/08/2021 - 17:56:51: [SM] Call stack trace:
    L 06/08/2021 - 17:56:51: [SM] [0] ThrowError
    L 06/08/2021 - 17:56:51: [SM] [1] Line 626, /home/l4d2/steamcmd/l4d2_sv/left4dead2/addons/sourcemod/scripting/include/pan0s.inc::CPrintToChat
    L 06/08/2021 - 17:56:51: [SM] [2] Line 369, l4d2_ivote.sp::Handler_VoteCallback
    L 06/08/2021 - 17:56:51: [SM] [4] Menu.Display
    L 06/08/2021 - 17:56:51: [SM] [5] Line 134, l4d2_ivote.sp::HandleCmdVoteMenu

    Last edited by VladimirTk; 06-08-2021 at 19:58.
    VladimirTk is offline
    pan0s
    Member
    Join Date: Nov 2017
    Old 06-09-2021 , 02:52   Re: [L4D2] IVote (Kick, Ban, Slay) [v1.0 | 23 May 2021]
    Reply With Quote #3

    Quote:
    Originally Posted by VladimirTk View Post
    This I register in console and in the error log good complement excuse my bad english
    L 06/08/2021 - 17:56:04: Error log file session closed.
    L 06/08/2021 - 17:56:51: SourceMod error session started
    L 06/08/2021 - 17:56:51: Info (map "c2m2_fairgrounds") (file "C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\logs\errors_202 10608.log")
    L 06/08/2021 - 17:56:51: [SM] Exception reported: Invalid client index -2
    L 06/08/2021 - 17:56:51: [SM] Blaming: l4d2_ivote.smx
    L 06/08/2021 - 17:56:51: [SM] Call stack trace:
    L 06/08/2021 - 17:56:51: [SM] [0] ThrowError
    L 06/08/2021 - 17:56:51: [SM] [1] Line 626, /home/l4d2/steamcmd/l4d2_sv/left4dead2/addons/sourcemod/scripting/include/pan0s.inc::CPrintToChat
    L 06/08/2021 - 17:56:51: [SM] [2] Line 369, l4d2_ivote.sp::Handler_VoteCallback
    L 06/08/2021 - 17:56:51: [SM] [4] Menu.Display
    L 06/08/2021 - 17:56:51: [SM] [5] Line 134, l4d2_ivote.sp::HandleCmdVoteMenu
    Code:
    v1.1 (6 June 2021)
    - Fixed CPrintToChat error.
    pan0s is offline
    NoroHime
    Senior Member
    Join Date: Aug 2016
    Location: bed
    Old 12-02-2021 , 19:43   Re: [L4D2] IVote (Kick, Ban, Slay) [v1.1 | 9 June 2021]
    Reply With Quote #4

    im trying to compile... then
    PHP Code:
    //// l4d2_ivote.sp
    //
    // B:\Documents\sm1.10\l4d2_ivote.sp(452) : error 017: undefined symbol "ForcePlayerSuicide"
    //
    // 1 Error.
    //
    // Compilation Time: 0.22 sec
    // ----------------------------------------

    Press enter to exit ... 
    ok i added include and done
    #include <sdktools>
    __________________

    Last edited by NoroHime; 12-02-2021 at 19:48. Reason: solved
    NoroHime is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 17:43.


    Powered by vBulletin®
    Copyright ©2000 - 2023, vBulletin Solutions, Inc.
    Theme made by Freecode