Raised This Month: $ Target: $400
 0% 

Can someone help me create a vote plugin.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
-D|H-Maverick
New Member
Join Date: Apr 2005
Old 04-25-2005 , 18:51   Can someone help me create a vote plugin.
Reply With Quote #1

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.
__________________
-D|H-Maverick is offline
 


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 16:43.


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