05.06.2017, 06:30
Guys this os worked for me:
1. cmd:jail - jail the player,settimer and save jailedtime
2. OnPlayerSpawn - check if jailed,killtimer, settimer(same timer)
So now everything works. If i jail player cmd:jail he is jailed for the time and if he reconnect i load the time and start timer again. Works
PROBLEM WITH 7 SECONDS GAMETEXT:
Style 1
Fades out after 8 seconds, regardless of time set. If you have a time setting longer than that, it will re-appear after fading out and repeat until the time ends.
This is the problem ... Well its better to use another type or textdraws
THANKS EVERYONE.
Especially Jefff - Your code works just needed some changes.
1. cmd:jail - jail the player,settimer and save jailedtime
2. OnPlayerSpawn - check if jailed,killtimer, settimer(same timer)
So now everything works. If i jail player cmd:jail he is jailed for the time and if he reconnect i load the time and start timer again. Works
PROBLEM WITH 7 SECONDS GAMETEXT:
Style 1
Fades out after 8 seconds, regardless of time set. If you have a time setting longer than that, it will re-appear after fading out and repeat until the time ends.
This is the problem ... Well its better to use another type or textdraws
THANKS EVERYONE.
Especially Jefff - Your code works just needed some changes.