Voting
Hey, can someone give me an example of a simple "Yes, No" vote?
IE: amx_votekick |
amx_votei do stuff like isTHISmapGAY?? yes NOway
you have to keep the quiestion together otherwise the next word is going to be an answer. or amx_vote DESTINYlikesHISmom OHya NOway and amx_kick destiny yes no stuff like so!! :D |
a) You can use parentheses in amx_vote: amx_vote "Is Catwoman hot?" "Ooh yea!" "No way!"
b) He was asking for Small code which lets him display his own vote menu. |
LOL, geez.. I know how to work a damn command!! I just want to know how the heck to code a simple one.
|
Code:
|
Nice, thanks.. One other small question to addon to this.. Say I wanted FF on or something, where would set_cvar_num("mp_friendlyfire",1) go if they voted yes?
|
In display_results, you'd compare votes[0] (the yes's) to votes[1] (the no's) depending on how you want your ratio to work, and then you set friendlyfire to on or off.
|
What if i wanted it to vote 5 minutes before end of game? would set_task(30.0, "vote") work. (i changed name of function it would go to).
|
Scratch that, this is what i have
Code:
temp = float(get_cvar_num("mp_combattime")-5) |
| All times are GMT -4. The time now is 13:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.