AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   voting! (https://forums.alliedmods.net/showthread.php?t=19801)

atomic 10-25-2005 20:34

voting!
 
how do i make a vote to enable something? like someone types /friendlyfire it makes a vote, and if the result is yes it enables it!

XxAvalanchexX 10-25-2005 20:51

First learn how to makes menus.

After that create some variables to see if a vote is currently running, how many voted yes, and how many voted no.

When someone says it, make a menu appear with a yes/no vote. Whenever someone votes yes, add to yes; whenever someone votes no, add to no.

After every has voted (add up yes votes + no votes and compare to player number) or a specified time has passed, count them.

Tada.

But basically, learn menus first.

atomic 10-25-2005 20:55

:twisted: TaTa... :) ty

joka69 10-26-2005 00:51

Search for custom vote plugin made by jtp10181 :wink:


All times are GMT -4. The time now is 00:04.

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