Hi,
I'm interested in calling some bespoke airdrops using fancydrop on wipeday, ideally I'd like to define a var wipeday (date format such as 03/01/2019) within some config, then check todays date matches wipeday var and execute the following:
class WipeDay : RustPlugin
{
void OnServerInitialized()
{
timer.Repeat(1800, 0, () =>
{
if('current date' === 'wipedate from config')
{
rust.RunServerCommand("ad.massdrop 10 wipeday");
PrintToChat("WipeDay is upon us... ");
Puts("WipeDay is upon us... ");
return;
}
else
{
return;
}
});
}
}
The bit I'm struggling with is the 'current date', how to implement a config (never done this before), then how to compare the two.
Any suggestions?
Cheers!