El ReinO De LoS ReinoS
¿Quieres reaccionar a este mensaje? Regístrate en el foro con unos pocos clics o inicia sesión para continuar.

El ReinO De LoS ReinoS

Ot
 
ÍndiceÍndice  PortalPortal  BuscarBuscar  Últimas imágenesÚltimas imágenes  RegistrarseRegistrarse  ConectarseConectarse  

 

 Jail System

Ir abajo 
AutorMensaje
Magus
Siervo
Siervo
Magus


Cantidad de envíos : 49
Edad : 31
Localización : Mexicoi
Fecha de inscripción : 27/10/2007

Jail System Empty
MensajeTema: Jail System   Jail System Icon_minitimeSáb Nov 03, 2007 7:49 pm

-- Made by knightfire

function onUse(cid, item, frompos, item2, topos)
player1pos = {x=topos.x, y=topos.y, z=topos.z, stackpos=253}
player1 = getThingfromPos(player1pos)
target = player1.uid

if player1.itemid > 0 then
jail = {x=730, y=596, z=7}
unjail = {x=703, y=600, z=7}
doTeleportThing(target,jail)
doPlayerSendTextMessage(target,22,"You have been sent to jail for 3 minutes then you will be executed.")
doSendMagicEffect(frompos,2)
local a = {cid=cid, target=target, jail=jail, unjail=unjail}
addEvent(onTime,3*60*1000,a)
end
end

function onTime(a)
doTeleportThing(a.target,a.unjail)
end
Volver arriba Ir abajo
 
Jail System
Volver arriba 
Página 1 de 1.
 Temas similares
-
» Suicide System 100 % por mi
» Advance mana rune system

Permisos de este foro:No puedes responder a temas en este foro.
El ReinO De LoS ReinoS :: El Rincon Del Scripter :: Actions-
Cambiar a: