Giving to offline players?
is there a way i can run a command so it will give offline players something.
I can give to players using timedexecute but if they offline then they dont get and have to be in game at the time the command runs
How is it possible to do it when they are offline and only allow it for 24 hours as its meant to be daily.
What if you do the 24 hour timer, check if they are online, if they are, give it to them, if they're not add them to a list of offline players who should be given an item when they connect. When they connect, give it to them.
no idea how to go about that 
at moment it works perfect if they online using timedExecute
But offline players lose out
There must be another way
Cheers for reply andrew
I haven't tried any of this, but basically when your 24 hour timer is up check player.IsConnected, if they are, just give them the items. If not, then add player.userID to a Dictionary mapping userIDs to lists of Items or whatever kind of dictionary you need to store the items you want to give them. In the OnPlayerInit(BasePlayer player) hook, which gets called after the player connects before they wake up,  check if they are in the dictionary. If they're in the dictionary, get the items from it and give them to them.
andrew2085
I haven't tried any of this, but basically when your 24 hour timer is up check player.IsConnected, if they are, just give them the items. If not, then add player.userID to a Dictionary mapping userIDs to lists of Items or whatever kind of dictionary you need to store the items you want to give them. In the OnPlayerInit(BasePlayer player) hook, which gets called after the player connects before they wake up,  check if they are in the dictionary. If they're in the dictionary, get the items from it and give them to them.
What is the problem just to give it to sleeping players, huh?
yeah need a way to give sleeping players something - i can do it for online players but because they are not on they dont get the gift.
Using timedexecute does not work on sleeping players.
If you share your code we'd have a better idea of what you might be doing wrong.