Quote:
Originally Posted by Skorpion1976
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
Quote:
Originally Posted by sapphire989
Nice plugin THX
|
I wrote another plugin also, for vote custom campaigns because standart menu doesn't show them
screenshot will be later