Help with vote plugin!
Hi all! I have a vote plugin that i need help with. I did so that the vote comes up every 15 minutes with "set_task(300.0, "ShowVote")" and also when a player just've connected to the server. And I also did so that when a player says: "/showvote" in chat, the votemenu comes up. But here is the problem: when a player says "/showvote", let us say 12 miutes after the first vote comes up, but just 3 minutes after a new vote comes up, the "set_task(300.0, "ShowVote") vote" that is set in the beginning comes up. I wanna do so that the time set_task(300.0) gets reseted to 300 again, so when you say "/ShowVote" it is gonna take 15 minutes to the next one. Please help me if you have any pointers :)
Code:
public plugin_init() |
| All times are GMT -4. The time now is 01:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.