SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 19/07/2009, 05:55 PM   #1
Mattjones17
Big Clucker
 
Join Date: Sep 2008
Posts: 105
Reputation: 0
Default Adding a timer to /jail

Hi
Is it possible to add a fine and a timer to this command, so that it automatically unjails the person after the timer reaches 0?

http://pastebin.com/m5e8f27c7
Matt
Mattjones17 is offline  
Old 19/07/2009, 05:57 PM   #2
James_Alex
Gangsta
 
Join Date: Dec 2008
Posts: 614
Reputation: 0
Default Re: Adding a timer to /jail

juste use "SetTimer"
visit www.wiki.sa-mp.com formore infos
James_Alex is offline  
Old 19/07/2009, 05:59 PM   #3
Mattjones17
Big Clucker
 
Join Date: Sep 2008
Posts: 105
Reputation: 0
Default Re: Adding a timer to /jail

Yeh - I've played aruond with that as it is - but I'm a bit of a scripting noob so I really dont know how I would go about setting the timer to jail the person for a certain amount of time, and only unjail them when its over, even if they logout.
Mattjones17 is offline  
Old 19/07/2009, 06:10 PM   #4
member
Huge Clucker
 
Join Date: Sep 2007
Posts: 415
Reputation: 0
Default Re: Adding a timer to /jail

You'll need SetTimerEx for that. Try this, i just did it quickly so it might not work. http://pastebin.com/d1ee6c7a3
If you want them to be re-jailed if they diconnect then re-connect then it gets more complicated, and you'll need to use player' account file (if you have one e.g. most admin FS's have files for each player) for that.
member is offline  
Old 19/07/2009, 06:25 PM   #5
Mattjones17
Big Clucker
 
Join Date: Sep 2008
Posts: 105
Reputation: 0
Default Re: Adding a timer to /jail

Thanks, I'll try that later when I get on my computer that has the script on it. I notice you added //2 minutes timer. Is it possible to set it so that the cop chooses the jailtime?
Thanks
Matt
Mattjones17 is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
jail timer abineri Help Archive 4 19/03/2010 09:28 PM
Need another help - jail timer Striker_Moe Help Archive 5 14/09/2009 04:57 PM
Add Jail BLACK-RIDER-1692 Help Archive 4 01/09/2009 04:06 PM
[FilterScript] [FS] Jail area and Jail command PinkFloydLover Filterscripts 13 05/08/2009 06:11 AM


All times are GMT. The time now is 01:54 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.