ID:272294
![]() May 31 2008, 7:12 am
|
|
How would you make a mute system that is timed, but it saves the time when the client logs out and resumes the time when he logs back in. I've tried making one but it didn't work so I gave up on it. Not sure how to make it work right.
|
![]() May 31 2008, 7:24 am
|
|
You should save the world.realtime they can be unmuted (if you want to mute them for 1 hour, that's world.realtime + 36000 ticks), then check every so often to see if the current world.realtime is larger than that, and if so unmute them. Check when they login after their savefile is loaded, to see if the time passed while they were offline. Then simply give them a variable to store the unmute time, which should be saved with your mob, however you handle saving.
|
I've tried the world.realtime, but it was glitched up logging in lol, thats why I wanted some sort of savefile to save them all.
|
Something like this?
var/list/muted // list hold all muted ckeys and the time they are unmuted |