AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D/2] Votekick (https://forums.alliedmods.net/showthread.php?t=142160)

D1maxa 11-02-2010 04:45

[L4D/2] Votekick
 
2 Attachment(s)
Description: Votekick menu for servers with more than 4 players in team. Also it shows player's country
How to use: say votekick, !votekick, /votekick or type in console votekick, sm_votekick
bind INS votekick - very useful binding
Cvars:
l4d_votekick_version - version of plugin
Screenshots:
Choose teamplayer in menu, standard form for votekick will be shown
Installation: put l4d_votekick.smx to plugins folder, l4d_votekick.phrases.txt to translations folder

Zoeylicious 11-02-2010 08:54

Re: [L4D/2] Votekick
 
Hello

cool thank you:):)

mikhdenis 11-02-2010 13:45

Re: [L4D/2] Votekick
 
Finally :)

RocKeR_DSk 11-10-2010 16:35

Re: [L4D/2] Votekick
 
COOOOOOL!!!!

D1maxa, THANK!!!!

Skorpion1976 11-12-2010 10:35

Re: [L4D/2] Votekick
 
Hi!
I have a question about how you unlocked the sm admin command "sm_votekick" for non-admins. You put these 2 regconsole commands in your code:
PHP Code:

RegConsoleCmd("votekick"Command_Votekick);
RegConsoleCmd("sm_votekick"Command_Votekick); 

The basevotes plugin which is in every SM version included, uses the same command, but only for admins.
1. Why does your plugin not interfere with basevotes plugin?
2. Is it possible to unlock some funvotes for non-admins too ?

MarshalZCC 11-12-2010 10:53

Re: [L4D/2] Votekick
 
Any plug-in can register any command. It's whether the function behind the command gets executed based on the permissions. If multiple plug-ins register the same command then both sets of functionality will get called.

sapphire989 11-12-2010 13:27

Re: [L4D/2] Votekick
 
Nice plugin :) THX

D1maxa 11-12-2010 14:10

Re: [L4D/2] Votekick
 
Quote:

Originally Posted by Skorpion1976 (Post 1347873)
Hi!
I have a question about how you unlocked the sm admin command "sm_votekick" for non-admins. You put these 2 regconsole commands in your code:
PHP Code:

RegConsoleCmd("votekick"Command_Votekick);
RegConsoleCmd("sm_votekick"Command_Votekick); 

The basevotes plugin which is in every SM version included, uses the same command, but only for admins.
1. Why does your plugin not interfere with basevotes plugin?
2. Is it possible to unlock some funvotes for non-admins too ?

i don't use basevotes on my server and plugin doesn't use it, i think l4d doesn't need it because it has their voting system. I wrote my plugin because standart votekick menu shows max 3 players for kick. I don't know about sm_votekick command from basevotes :)
U want fun votes for users non admins - edit funvotes.sp in scripting folder:
Change
Code:

RegAdminCmd("sm_votegravity", Command_VoteGravity, ADMFLAG_VOTE, "sm_votegravity <amount> [amount2] ... [amount5]");
    RegAdminCmd("sm_voteburn", Command_VoteBurn, ADMFLAG_VOTE|ADMFLAG_SLAY, "sm_voteburn <player>");
    RegAdminCmd("sm_voteslay", Command_VoteSlay, ADMFLAG_VOTE|ADMFLAG_SLAY, "sm_voteslay <player>");
    RegAdminCmd("sm_votealltalk", Command_VoteAlltalk, ADMFLAG_VOTE, "sm_votealltalk");
    RegAdminCmd("sm_voteff", Command_VoteFF, ADMFLAG_VOTE, "sm_voteff");

to
Code:

RegConsoleCmd("sm_votegravity", Command_VoteGravity, "sm_votegravity <amount> [amount2] ... [amount5]");
    RegConsoleCmd("sm_voteburn", Command_VoteBurn, "sm_voteburn <player>");
    RegConsoleCmd("sm_voteslay", Command_VoteSlay, "sm_voteslay <player>");
    RegConsoleCmd("sm_votealltalk", Command_VoteAlltalk, "sm_votealltalk");
    RegConsoleCmd("sm_voteff", Command_VoteFF, "sm_voteff");

save as funvotesforall.sp, compile it, have fun :wink:
Quote:

Originally Posted by sapphire989 (Post 1347959)
Nice plugin :) THX

I wrote another plugin also, for vote custom campaigns because standart menu doesn't show them :) screenshot will be later

Danny_l4d 11-16-2010 10:09

Re: [L4D/2] Votekick
 
I used custom votes and with this it was possible to kick the tank in a coop game,
is it also possible with this plugin? if yes can it be disabled?

D1maxa 11-16-2010 11:13

Re: [L4D/2] Votekick
 
use votemanager for regulating voting rights


All times are GMT -4. The time now is 10:27.

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