I want to create a plugin that can toggle axn_bunnyjump with a vote. I am relatively new to AMXX coding so I might make some mistakes.
I started with the commands I wanted
Code:
public plugin_init() {
register_plugin("Vote Bhop","0.1","Maverick")
register_cvar("amx_votebhopon","1")
register_concmd("amx_votebhop","cmdvotebhop",ADMIN_VOTE,"Votes to toggle bhop")
register_clcmd("say votebhop","cmdclvotebhop",0,"Votes to toggle bhop")
}
Then, I wanted to make it so if cvar amx_votebhopon = 0, clients couldnt vote. I thought it through and started from a number of different way, but I kept getting stuck.
Then theres the part of making the vote, vote ratios, TOGGLING axn_bunnjump from "0" to "1" depending on the current setting, and a lot more.
I've looked through scripts, examples, other vote plugins, and tutorials and have found nothing to help me. If you want, you could finish the plugin for me and take credit, and I'll look through it and see what you did, or you could tell me how to.
Also, if there is a plugin like this out there (exactly or very close so that I could change the vote), that would also be good to know. I did at least six searches and couldn't find anything related to what I want.
__________________