I don't know why it's not working
I've tried to modify the mapchooser.sma to make a bit better for my server. I modified for date and number of players, but the plugin won't working. When the vote time comes the maps it's extracted from maps_mini.ini, "doesen't cares" about the number of players, and what time is it. I've tested it without "check the number of players", only "check the time", and it's working. I don't know what to do.
PHP Code:
|
Re: I don't know why it's not working
There is always ZERO (0) players when the server starts/changes map.
|
Re: I don't know why it's not working
The plugin starts when 1 minute remains from the current map. When 1 minute remains the plugin check the number of the players, and not when the server changes the map.
I also check if the plugin works well, and yes... PHP Code:
|
Re: I don't know why it's not working
Are you saying that the code in your first post is not in plugin_init()? You are going to need to show your whole code to get help. If it's more than a couple hundred lines then attach the .sma file.
|
Re: I don't know why it's not working
Yes is there in plugin_init(). Really I don't get it... why the plugin works with "end night & start night" and the "check the number of players" it's not working. Sorry for my expression, I can't explain it better.
PHP Code:
|
Re: I don't know why it's not working
That answer is the same as I said before, there are ZERO players on the server during plugin_init().
|
Re: I don't know why it's not working
hmm, good to know... is there a way to solve my problem?
|
Re: I don't know why it's not working
Quote:
Use a set_task() to do anything related to the number of players. Make it long enough so that all players from the previous map are connected. OR, you can get the number of players at the end of the map previous and use that number but could be inaccurate because people tend to leave on map changes (in my experience; maybe not so much in Counter-Strike since it's more boring than watching paint dry and many will leave early :wink:). |
Re: I don't know why it's not working
Quote:
I will try to use with set_task. Thank you for opinion and post! |
| All times are GMT -4. The time now is 11:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.