OTServ
¿Quieres reaccionar a este mensaje? Regístrate en el foro con unos pocos clics o inicia sesión para continuar.
Dirección Ip
[Talkation] comando !jail 3
Conectarse

Recuperar mi contraseña

Buscar
 
 

Resultados por:
 

 


Rechercher Búsqueda avanzada

Mejores posteadores
XxStroksxX (463)
[Talkation] comando !jail Vote1111[Talkation] comando !jail Vote2111[Talkation] comando !jail Vote3111 
~*~[:Đαяќ:]~[:тιβια:]~*~ (366)
[Talkation] comando !jail Vote1111[Talkation] comando !jail Vote2111[Talkation] comando !jail Vote3111 
spoor (83)
[Talkation] comando !jail Vote1111[Talkation] comando !jail Vote2111[Talkation] comando !jail Vote3111 
Dj Pacos (73)
[Talkation] comando !jail Vote1111[Talkation] comando !jail Vote2111[Talkation] comando !jail Vote3111 
God Skit (68)
[Talkation] comando !jail Vote1111[Talkation] comando !jail Vote2111[Talkation] comando !jail Vote3111 
GoD MexicanSoul (40)
[Talkation] comando !jail Vote1111[Talkation] comando !jail Vote2111[Talkation] comando !jail Vote3111 
fuzzy (35)
[Talkation] comando !jail Vote1111[Talkation] comando !jail Vote2111[Talkation] comando !jail Vote3111 
Eddie (31)
[Talkation] comando !jail Vote1111[Talkation] comando !jail Vote2111[Talkation] comando !jail Vote3111 
GOD Chimito (30)
[Talkation] comando !jail Vote1111[Talkation] comando !jail Vote2111[Talkation] comando !jail Vote3111 
conalep1996 (23)
[Talkation] comando !jail Vote1111[Talkation] comando !jail Vote2111[Talkation] comando !jail Vote3111 

Últimos temas
» [???] [Super Naruto OT]
[Talkation] comando !jail Icon_m10Lun Jun 08, 2015 12:08 pm por keishmer91

» [ACTION] God/GM da item a un player
[Talkation] comando !jail Icon_m10Mar Dic 02, 2014 12:53 pm por hecmanos

» [8.60] Nuevo War Thais By TheRobertxon
[Talkation] comando !jail Icon_m10Vie Jun 20, 2014 10:56 am por luismc

» [7.92]Naruto Final Story!
[Talkation] comando !jail Icon_m10Dom Mayo 26, 2013 2:40 am por ricardotuck

» [9.1] Fun Server
[Talkation] comando !jail Icon_m10Mar Mayo 14, 2013 5:32 pm por skifer

» [9.1] The Forgotten Server v0.2.11pl2 (Mystic Spirit)
[Talkation] comando !jail Icon_m10Mar Mayo 14, 2013 5:29 pm por skifer

» New Map 8.60 (Darksystem) By: Turock & Gilio LIsto Arreglado El
[Talkation] comando !jail Icon_m10Mar Mayo 07, 2013 5:27 pm por tonyso

» Ocean Clasic Global Map 8.6
[Talkation] comando !jail Icon_m10Miér Mayo 01, 2013 11:19 pm por maganiua

» ayuda a abrir puertos
[Talkation] comando !jail Icon_m10Lun Abr 29, 2013 5:58 pm por XxStroksxX

» [8.60] Speedy War
[Talkation] comando !jail Icon_m10Dom Abr 28, 2013 5:51 pm por Sunnade'Audio

Upload Images
ImagesHack
Scanner
VirusTotal

[Talkation] comando !jail

3 participantes

Ir abajo

[Talkation] comando !jail Empty [Talkation] comando !jail

Mensaje por God Skit Jue Mar 03, 2011 8:41 am

Bueno amigos aqui les traigo otro de mis posts
el comando es la talkaction !jail
Esta talkaction se trata de que los gods y cms digan !jail NAME , cuando dicen eso lo manda a la carcel todo lo que tu quieras, para sacarlo solo di /unjail NAME o /t NAME xD; bueno, la otra cosa que puedes decir es
!jail 5 name, ese 5 son los minutos que estara en la carcel
COMO EN ARMADA AZTECA!
bueno primero crean un archivo lua en su carpeta talkactions/scripts
que el archivo se llame jailsystem

luego le ponen esto dentro


Código:
-- Default jail time in seconds --
default_jail = 1500
-- The permission you need to jail someone --
grouprequired = 3
-- StorageValue that the player gets --
jailedstoragevalue_time = 1338
jailedstoragevalue_bool = 1339
-- Set the position of the jail: --
jailpos = { x = 167, y = 37, z =7 }
-- Set the position once unjailed: --
unjailpos = { x = 163, y = 83, z =7 }
-- auto kicker, dont edit
jail_list = {}
jail_list_work = 0

function checkJailList(param)
addEvent(checkJailList, 1000, {})
for targetID,player in ipairs(jail_list) do
if isPlayer(player) == TRUE then
if getPlayerStorageValue(player, jailedstoragevalue_time) < os.time() then
doTeleportThing(player, unjailpos, TRUE)
setPlayerStorageValue(player, jailedstoragevalue_time, 0)
setPlayerStorageValue(player, jailedstoragevalue_bool, 0)
table.remove(jail_list,targetID)
doPlayerSendTextMessage(player,MESSAGE_STATUS_CONSOLE_ORANGE,'You were kicked from jail! Make sure to follow the rules from now on !')
end
else
table.remove(jail_list,targetID)
end
end
end

function onSay(cid, words, param)
if jail_list_work == 0 then
jail_list_work = addEvent(checkJailList, 1000, {})
end
if param == '' and (words == '!unjail' or words == '/unjail') then
if getPlayerStorageValue(cid, jailedstoragevalue_time) > os.time() then
doPlayerSendTextMessage ( cid, MESSAGE_INFO_DESCR, 'You are jailed until ' .. os.date("%H:%M:%S", getPlayerStorageValue(cid, jailedstoragevalue_time)) .. ' (now is: ' .. os.date("%H:%M:%S", os.time()) .. ').')
else
if getPlayerStorageValue(cid, jailedstoragevalue_bool) == 1 then
table.insert(jail_list,cid)
doPlayerSendTextMessage ( cid, MESSAGE_INFO_DESCR, 'You will be kicked from jail in one second.')
else
doPlayerSendTextMessage ( cid, MESSAGE_INFO_DESCR, 'You are not jailed.')
end
end
return TRUE
end
local jail_time = -1
for word in string.gmatch(tostring(param), "(%w+)") do
if tostring(tonumber(word)) == word then
jail_time = tonumber(word)
end
end
local isplayer = getPlayerByName(param)
if isPlayer(isplayer) ~= TRUE then
isplayer = getPlayerByName(string.sub(param, string.len(jail_time)+1))
if isPlayer(isplayer) ~= TRUE then
isplayer = getPlayerByName(string.sub(param, string.len(jail_time)+2))
if isPlayer(isplayer) ~= TRUE then
isplayer = getPlayerByName(string.sub(param, string.len(jail_time)+3))
end
end
end
if jail_time ~= -1 then
jail_time = jail_time * 60
else
jail_time = default_jail
end
if words == '!jail' or words == '/jail' then
if getPlayerGroupId ( cid ) >= grouprequired then
if isPlayer(isplayer) == TRUE then
doTeleportThing(isplayer, jailpos, TRUE)
setPlayerStorageValue(isplayer, jailedstoragevalue_time, os.time()+jail_time)
setPlayerStorageValue(isplayer, jailedstoragevalue_bool, 1)
table.insert(jail_list,isplayer)
doPlayerSendTextMessage ( cid, MESSAGE_INFO_DESCR, 'You jailed '.. getCreatureName(isplayer) ..' until ' .. os.date("%H:%M:%S", getPlayerStorageValue(isplayer, jailedstoragevalue_time)) .. ' (now is: ' .. os.date("%H:%M:%S", os.time()) .. ').')
doPlayerSendTextMessage ( isplayer, MESSAGE_INFO_DESCR, 'You have been jailed by '.. getCreatureName(cid) ..' until ' .. os.date("%H:%M:%S", getPlayerStorageValue(isplayer, jailedstoragevalue_time)) .. ' (now is: ' .. os.date("%H:%M:%S", os.time()) .. ').')
doBroadcastMessage(' >>>'.. getCreatureName(cid) ..'<<< Ha encarcelado ha: '.. getCreatureName(isplayer) ..' ', MESSAGE_EVENT_ADVANCE)
return TRUE
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Player with this name doesn't exist or is offline.")
return FALSE
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You don't have access to unjail other players.")
return FALSE
end
elseif words == '!unjail' or words == '/unjail' then
if getPlayerGroupId ( cid ) >= grouprequired then
if isPlayer(isplayer) == TRUE then
doTeleportThing(isplayer, unjailpos, TRUE)
setPlayerStorageValue(isplayer, jailedstoragevalue_time, 0)
setPlayerStorageValue(isplayer, jailedstoragevalue_bool, 0)
table.remove(jail_list,targetID)
doPlayerSendTextMessage(isplayer,MESSAGE_STATUS_CONSOLE_ORANGE,getCreatureName(cid) .. ' let you go out from jail! See you later Smile')
doPlayerSendTextMessage ( cid, MESSAGE_INFO_DESCR, 'You unjailed '.. getCreatureName(isplayer) ..'.')
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Player with this name doesn't exist or is offline.")
return FALSE
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You don't have access to unjail other players.")
return FALSE
end
end
return FALSE
end


en donde dice

Código:
-- Set the position of the jail: --
jailpos = { x = 167, y = 37, z =7 } <<<<<< es donde aparecera una ves que lo encarceles
-- Set the position once unjailed: --
unjailpos = { x = 163, y = 83, z =7 }<<<<<


bien ahora te vas a talkactions.xml
y en gods pones esto


Código:
<talkaction words="!jail" script="jailsystem.lua"/>
<talkaction words="/unjail" script="jailsystem.lua"/>

asi le haces

si te sirvio dame rep ;D
God Skit
God Skit

Forero fase Beta
Forero fase Beta

+ New User +
Masculino Mexico Virgo Rata
Chrome
Edad Edad : 27
Mensajes Mensajes : 68
Localización Localización : veracruz
Fecha de inscripción Fecha de inscripción : 27/02/2011

Hoja de personaje
Personaje: Sir'garin
Vocation: Sorcerer
Mundo: Shivera

Volver arriba Ir abajo

[Talkation] comando !jail Empty Re: [Talkation] comando !jail

Mensaje por XxStroksxX Jue Mar 03, 2011 9:22 am

Me sirvio mucho +REP
XxStroksxX
XxStroksxX

+ Administrador +
+ Administrador +

¡Sorcerer Rapero!
Masculino España Géminis Cerdo
Chrome
Edad Edad : 28
Mensajes Mensajes : 463
Localización Localización : Barcelona
Fecha de inscripción Fecha de inscripción : 01/08/2010

Hoja de personaje
Personaje: Khail Phount
Vocation: Knight
Mundo: Infernia

http://www.otserv.biz/

Volver arriba Ir abajo

[Talkation] comando !jail Empty Re: [Talkation] comando !jail

Mensaje por ~*~[:Đαяќ:]~[:тιβια:]~*~ Vie Mar 04, 2011 12:13 pm

esta bueno (:
~*~[:Đαяќ:]~[:тιβια:]~*~
~*~[:Đαяќ:]~[:тιβια:]~*~

+ Moderador +
+ Moderador +

*~Elder Wolf~*
Masculino Mexico Virgo Cerdo
Chrome
Edad Edad : 28
Mensajes Mensajes : 366
Localización Localización : :O ala versh XD
Fecha de inscripción Fecha de inscripción : 29/01/2011

http://www.chaosserv.no-ip.info

Volver arriba Ir abajo

[Talkation] comando !jail Empty Re: [Talkation] comando !jail

Mensaje por Contenido patrocinado


Contenido patrocinado


Volver arriba Ir abajo

Volver arriba

- Temas similares

 
Permisos de este foro:
No puedes responder a temas en este foro.