Is there a way to jail someone for 3 days? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Is there a way to jail someone for 3 days? (
/showthread.php?tid=149032)
Is there a way to jail someone for 3 days? -
Nakash - 20.05.2010
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.
Re: Is there a way to jail someone for 3 days? -
iJumbo - 20.05.2010
you have to put a player name in a file like dini and save if jailed or not like jailed = 1 or 0 ...
Re: Is there a way to jail someone for 3 days? -
Nakash - 20.05.2010
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.
Re: Is there a way to jail someone for 3 days? -
Sergei - 20.05.2010
gettime() + (3*86400) = 3 days from this moment.
Then just check with gettime() if it's already that time or over and release player.
Re: Is there a way to jail someone for 3 days? -
Nakash - 20.05.2010
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!