Force mapvote from another plugin
Hey Hey :)
How can i force a mapvote (like the vote when there are 2 mins left on a gameserver.) The command i need to force on my plugin is: voteNextmap from mapchooser. More Info: When a player won on my server, (a mod i working on), then i need to force it to preform a mapvote, where it actives: voteNextmap from the mapchooser.amxx Can anyone be so kind and help. |
Re: Force mapvote from another plugin
Use callfunc's natives from the core.
|
Re: Force mapvote from another plugin
won't this work aswell
#include <mapchooser.amxx> and then calling up the function ? |
Re: Force mapvote from another plugin
No, do what VEN said
Code:
|
Re: Force mapvote from another plugin
Quote:
|
Re: Force mapvote from another plugin
The function voteNextmap is called every few seconds by mapchooser.amxx, not only when it is time to vote. Whenever it is called, it checks if it should do a map vote, and if not just keeps looping every few seconds. So, this is how I trigger it in GunGame AMXX:
Code:
I also make sure to check the callfunc_begin for success before using callfunc_end, because it could raise a runtime error otherwise. |
Re: Force mapvote from another plugin
Thank you so much XxAvalanchexX :)
Have a very good weekend |
| All times are GMT -4. The time now is 06:57. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.