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

Help please :)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Relikie
Junior Member
Join Date: Dec 2007
Old 12-18-2007 , 17:21   Help please :)
Reply With Quote #1

Hi! I'm trying to make a votekick plugin. (I need one that makes a vote with yes or no for the player. It also can't be interruptable. I haven't been able to find this so far. If there is one like this, can anyone give me a linky?) Can someone explain to me:
1. How to get a list of clients, and put them into a menu.
2. Make the the vote check if another is running.
3. Recognize "votekick" in the text.

I know I'm demanding, but I just can't figure this out alone, or with the wiki. Thank you in advance!
Relikie is offline
BAILOPAN
Join Date: Jan 2004
Old 12-18-2007 , 17:56   Re: Help please :)
Reply With Quote #2

There is an sm_votekick command supplied with our basevotes plugin, and all commands automatically have chat triggers (which takes care of #3). The voting API will automatically take care of #2 for you, only one vote can be activate at a time.

If you still want to code your own, check out this article for help on menus: http://wiki.alliedmods.net/Menu_API_%28SourceMod%29 -- it has quite a few examples with code included.
__________________
egg
BAILOPAN is offline
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 12:30.


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