Help with time
Hi, so i want a plugin that when its 20:00 a message is send to all connected players.
I tried this but not working... Code:
#include <amxmodx> |
Re: Help with time
Try to let the time get checked every 1 second.
|
Re: Help with time
Like this ?
Code:
#include <amxmodx> |
Re: Help with time
Yeah, did u test it and it worked?
|
Re: Help with time
It is working, but the task is repeating, and i am getting spammed with:
Code:
Its 20:00 |
Re: Help with time
Stop the task and try to re-start it again at another time.
|
Re: Help with time
How i do that?
|
Re: Help with time
Quote:
I think one option would be to execute the function every minute and check both h == 20 and m == 0. |
Re: Help with time
Thanks, i solved. You can close this topic.
|
Re: Help with time
Just pause the plugin or remove the task when it's done.
Efficient. Here's another function you can use though i'm planning on improving it. Code:
|
| All times are GMT -4. The time now is 10:07. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.