AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   jailed then out (https://forums.alliedmods.net/showthread.php?t=24464)

wonsae 02-23-2006 20:11

jailed then out
 
How would I make it so I jail someone for like 5 mins then after 5 mins they are teleported out of jail

GHW_Chronic 02-23-2006 20:14

Code:
public jail(id) {     //teleport ID to jail     set_task(300.0,"unjail",id) } public unjail(id) {     //teleport ID out of jail }

wonsae 02-23-2006 20:38

Is it only for 5 mins? Like I want it to be so it's custom for example amx_jail <cell> <time>

GHW_Chronic 02-23-2006 20:39

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 }

wonsae 02-23-2006 20:41

thank you!


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

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