Timer continueing after disconnection
#1

Hey guys,

Im busy making make a /arrest command for cops in my server. If the cops arrest the suspect they must be sent to jail and if they disconnected after they were jailed the timer must be paused and if they reconnect the timer must continue. Can anyone present me with a piece of coding that does this please. Thanks in advance.
Reply
#2

This isn't a request forum, it's a scripting help and improvement forum. If you need a script done, then post somewhere else. This isn't the place.
Reply
#3

You need to save a variable for the jail time, use SetTimerEx to count down the jail time for the player, if they quit, kill the timer, and when they rejoin, OnPlayerSpawn if their jailtime is greater than 0, put them back in jail and start the timer again.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)