Hey guys, here I am again.
I have a plugin that s part of an event, and that i put on every Tuesday and Sunday between the hours 20:00 - 22:00 on Tuesday and 18:00 - 20:00 on Sunday.
But here I ask for your knowledge. Is it possible to make this plugin activates automatically in those days, at those hours? Like setting the plugin a time to start and a time to end?
I ask if is something that I can just add at the plugin, if not, tell me and I leave you the code.
Yes we can indeed. But where's the source code of your plugin? lol
Also do you want the start / end times to be controlled by cvars or should it be hardcoded?
Ok, so this plugin gives a [TAG] to the players, a message when entering the server, a new kniferounds and a command /llg.
this plugin is part of an event, every Tuesday between the hours 20:00 - 22:00 and and 18:00 - 20:00 on Sunday. I want him to activate itself at that time , without me starting it at 20:00 and stopping it at 22:00, like..let's say my internet goes down without any reason or cause for 7 days, I want the plugin to do his work and start the event at those hours on sunday and tuesday without my intervention.
If somebody can make this, It would be incredible, thanks.
if( id ) players[ 0 ] = id;
else get_players( players, count, "ch" );
{
for( new i = 0; i < count; i++ )
{
if( is_user_connected( players[ i ] ) )
{
message_begin( MSG_ONE_UNRELIABLE, get_user_msgid( "SayText" ), _, players[ i ] );
write_byte( players[ i ] );
write_string( msg );
message_end( );
}
}
}
}
Note that this is working with the time that's running on your server depending on where your server is being hosted from.
The changes will take place after a map change, so I made it enable hour earlier.
After map changes, if its between 19-22 on Tuesday or 17-20 on Sunday the plugin should start doing stuff.
If you want to change the start and end hours, edit this:
I will try and come back with an edit.
So, i don t have to do any other thing, just put the plugin in and then he will stay on just in those days at those hours? No more commands or ads?