//if the test var is still at 0 so get time string in "thetime" variable and//add the difference time to it (for example adding 5 will make action execute every 5 minutes)//---------------------------------------------------------------------------------------------if(server_var(timetest) equalto 0) then es_gettimestring thetimeif(server_var(timetest) equalto 0) then es_math thetime + 5

//This is get the correct minutes value as it could be greater than 59 (so wrong min value)//-----------------------------------------------------------------------------------------if(server_var(timetest) equalto 0) then if(server_var(thetime) greaterthan 59) then es_math thetime - 60

//check if current mins are greater than saved mins (newtime>thetime)//and if yes do the actions you want. I just print the time in this example//so I change the timeformat again to get the full time string in a new var called "drawtime"//-------------------------------------------------------------------------------------------if(server_var(newtime) greaterthan server_var(thetime)) then es_setinfo drawtime 0if(server_var(newtime) greaterthan server_var(thetime)) then eventscripts_timeformat %H:%M:%Sif(server_var(newtime) greaterthan server_var(thetime)) then es_gettimestring drawtimeif(server_var(newtime) greaterthan server_var(thetime)) then es_msg #green Heure : server_var(drawtime)

//this is the exec line that. This cfg executes itself every 15 minutes. So the 15//is how often to check newtime and thetime. Change it to any number of seconds you'd like//----------------------------------------------------------------------------------------es_delayed 15 es exec server_var(thetime.cfg)

Finally you can make a player_say.cfg to check the current values and manually exec the cfg if it doesn't work (for any reason).

Who is online

Users browsing this forum: No registered users and 3 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum