Is there a way to jail someone for 3 days?
#1

I was thinking about jailing someone for 3 days,
but I don't want him to stay at the server the whole 3 days.
I want to jail him for 1 day.. if he comes tommorow he will be unjailed.
I was thinking about putting the curdate in the player's array or something like that.
Reply
#2

you have to put a player name in a file like dini and save if jailed or not like jailed = 1 or 0 ...
Reply
#3

Quote:
Originally Posted by [ZDM
jumbo ]
you have to put a player name in a file like dini and save if jailed or not like jailed = 1 or 0 ...
I know, I have the pJailed already in the player's array.
I thought maybe I can make a new variable that will take the curdate and check.
Reply
#4

gettime() + (3*86400) = 3 days from this moment.
Then just check with gettime() if it's already that time or over and release player.
Reply
#5

Quote:
Originally Posted by $ЂЯĢ
gettime() + (3*86400) = 3 days from this moment.
Then just check with gettime() if it's already that time or over and release player.
Can you give me an example please? I think hours is better thank you!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)