Jail problem
#8

You will be needing a saving system. That may keep the value of jailed player to 1 or true(if its a bool) .
And, when player connects first you will need to clear the variables and booleans. Then fetch the jailed data/punishment data and save in that same variable
And then on player spawn you just check if player is jailed and if the value is 1 or true then teleport player to the jail coordinates. And voilб you just jailed player even after reconnecting to the server.
Reply


Messages In This Thread
Jail problem - by Hunud - 16.07.2016, 17:35
Re: Jail problem - by Sjn - 16.07.2016, 17:39
Re: Jail problem - by UltraScripter - 16.07.2016, 17:41
Re: Jail problem - by Hunud - 16.07.2016, 17:48
Re: Jail problem - by UltraScripter - 16.07.2016, 17:52
Re: Jail problem - by Hunud - 16.07.2016, 17:55
Re: Jail problem - by UltraScripter - 16.07.2016, 17:57
Re: Jail problem - by gurmani11 - 16.07.2016, 19:19

Forum Jump:


Users browsing this thread: 2 Guest(s)