Raised This Month: $51 Target: $400
 12% 

Simple Votekick [Rock the Vote Based]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Plugin ID:
4152
Plugin Version:
0.0.1
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Vote Plugin using percentages and Rock the vote system to Kick Players from server
    Old 04-02-2014 , 01:43   Simple Votekick [Rock the Vote Based]
    Reply With Quote #1

    Hi all, it is my first Plug-in based on Sourcemod: Vote Kick

    It is a quite simple, the user open a Vote Kick menu using sm_votekick or .votekick,
    choose a target player and vote. If the target has than more % of votes, it will Kicked automatically from server.

    Cvars:
    Code:
    votekick_percentage "70.0"  ; Percentage to Kick a Target
    votekick_minplayers "3"  ; Required Players to use the Vote Kick


    Commands:

    Code:
    say .votekick
    sm_votekick_rtv (Console)
    Ps.
    Sorry, i do not tested in other mods than CS:GO, but i think this plug-in will work in other games too.

    Changes
    Code:
    0.0.1 - Initial Commit
    0.0.2 - changed sm_votekick to sm_votekick_rtv (Sorry it is the same command as basevotes)
    Tips are always welcome!
    Attached Files
    File Type: sp Get Plugin or Get Source (VoteKick.sp - 1569 views - 3.7 KB)
    __________________
    Projects:

    - See my Git Hub: https://github.com/SmileYzn
    PHP Code:
    set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

    Last edited by ^SmileY; 04-03-2014 at 12:41. Reason: Oops
    ^SmileY is offline
    Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
    SPYderman
    Senior Member
    Join Date: Aug 2013
    Old 04-02-2014 , 23:17   Re: Simple Votekick [Rock the Vote Based]
    Reply With Quote #2

    Basic, but very nice.
    SPYderman is offline
    Godis
    Senior Member
    Join Date: Jan 2014
    Old 04-03-2014 , 10:07   Re: Simple Votekick [Rock the Vote Based]
    Reply With Quote #3

    This is included with basevotes..
    Godis is offline
    ^SmileY
    Veteran Member
    Join Date: Jan 2010
    Location: Brazil [<o>]
    Old 04-03-2014 , 12:37   Re: Simple Votekick [Rock the Vote Based]
    Reply With Quote #4

    Quote:
    Originally Posted by Godis View Post
    This is included with basevotes..
    I think not (i do not know), but is percentage based from RTV it is the same as basevotes?

    Ps. sm_votekick <player> [reason] Is not the same
    __________________
    Projects:

    - See my Git Hub: https://github.com/SmileYzn
    PHP Code:
    set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

    Last edited by ^SmileY; 04-03-2014 at 12:39.
    ^SmileY is offline
    Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
    8guawong
    AlliedModders Donor
    Join Date: Dec 2013
    Location: BlackMarke7
    Old 04-21-2014 , 13:48   Re: Simple Votekick [Rock the Vote Based]
    Reply With Quote #5

    hi would it possible to change it so it uses !votekick or just votekick instead of .votekick for trigger
    8guawong is offline
    ecca
    Sexy Santa
    Join Date: Jan 2011
    Old 04-21-2014 , 14:40   Re: Simple Votekick [Rock the Vote Based]
    Reply With Quote #6

    ^ you need to hook the chat , and match it against the text. This requires some rewrite.
    __________________
    ecca is offline
    8guawong
    AlliedModders Donor
    Join Date: Dec 2013
    Location: BlackMarke7
    Old 04-23-2014 , 04:50   Re: Simple Votekick [Rock the Vote Based]
    Reply With Quote #7

    will changing

    Code:
    	RegConsoleCmd("say .votekick",PugCmdVoteKick,"Vote to Kick an Player.");
    to

    Code:
     	RegConsoleCmd("say !votekick",PugCmdVoteKick,"Vote to Kick an Player.");p
    and recompile it work??
    8guawong is offline
    eyesofcreeper
    Member
    Join Date: Dec 2013
    Old 04-24-2014 , 11:39   Re: Simple Votekick [Rock the Vote Based]
    Reply With Quote #8

    Quote:
    Originally Posted by 8guawong View Post
    will changing

    Code:
        RegConsoleCmd("say .votekick",PugCmdVoteKick,"Vote to Kick an Player.");
    to

    Code:
         RegConsoleCmd("say !votekick",PugCmdVoteKick,"Vote to Kick an Player.");
    and recompile it work??
    Yes for !votekick but no for votekick in chat. I can rewrite it for you if you want
    eyesofcreeper is offline
    Send a message via Skype™ to eyesofcreeper
    8guawong
    AlliedModders Donor
    Join Date: Dec 2013
    Location: BlackMarke7
    Old 04-25-2014 , 04:20   Re: Simple Votekick [Rock the Vote Based]
    Reply With Quote #9

    Quote:
    Originally Posted by eyesofcreeper View Post
    Yes for !votekick but no for votekick in chat. I can rewrite it for you if you want
    could you please?? so the trigger to start a votekick would be !votekick or just votekick without the .
    8guawong is offline
    eyesofcreeper
    Member
    Join Date: Dec 2013
    Old 04-25-2014 , 05:07   Re: Simple Votekick [Rock the Vote Based]
    Reply With Quote #10

    Quote:
    Originally Posted by 8guawong View Post
    could you please?? so the trigger to start a votekick would be !votekick or just votekick without the .

    I have not tested this, but it should work...
    Attached Files
    File Type: sp Get Plugin or Get Source (VoteKick.sp - 958 views - 4.3 KB)

    Last edited by eyesofcreeper; 04-25-2014 at 06:06. Reason: Oops, the plugin does not compile. FIXED
    eyesofcreeper is offline
    Send a message via Skype™ to eyesofcreeper
    Reply



    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 10:45.


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