Raised This Month: $ Target: $400
 0% 

jailed then out


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wonsae
Senior Member
Join Date: Jan 2006
Location: Behind you >:D
Old 02-23-2006 , 20:11   jailed then out
Reply With Quote #1

How would I make it so I jail someone for like 5 mins then after 5 mins they are teleported out of jail
wonsae is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 02-23-2006 , 20:14  
Reply With Quote #2

Code:
public jail(id) {     //teleport ID to jail     set_task(300.0,"unjail",id) } public unjail(id) {     //teleport ID out of jail }
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
wonsae
Senior Member
Join Date: Jan 2006
Location: Behind you >:D
Old 02-23-2006 , 20:38  
Reply With Quote #3

Is it only for 5 mins? Like I want it to be so it's custom for example amx_jail <cell> <time>
wonsae is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 02-23-2006 , 20:39  
Reply With Quote #4

Code:
public jail(id,level,cid) {     new arg2[32]     read_argv(2,arg2,31)     //teleport "target" to jail     set_task(str_to_num(arg2)*60,"unjail",id) } public unjail(id) {     //teleport ID out of jail }
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
wonsae
Senior Member
Join Date: Jan 2006
Location: Behind you >:D
Old 02-23-2006 , 20:41  
Reply With Quote #5

thank you!
wonsae is offline
Reply



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

Forum Jump


All times are GMT -4. The time now is 20:28.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode