Aqui funfo e ja to usando no ot...
muito bom...
mais fiz augumas auteraçoes olhem
------Jail by ApoJohn
function onSay(cid, words, param)
pacces = 6
nstorage = 1338
jailpos = {x=480, y=52, z=9}
unjailpos = {x=160, y=54, z=7}
acces = getPlayerAccess(cid)
player2 = getPlayerByName(param)
storage = getPlayerStorageValue(player2, nstorage)
jailer = getPlayerName(cid)
unjailer = getPlayerName(cid)
if words == '/jail' and acces >= pacces and param ~= "" and storage == -1 then
doPlayerSendTextMessage(player2,22,'Voce esta presso !NooB! ')
doTeleportThing(player2,jailpos)
doPlayerSendTextMessage(cid,22,"Voce prendeu "..param..".")
setPlayerStorageValue(player2, nstorage, 1)
doPlayerAddHealth(cid,-1)
doPlayerAddHealth(cid,-2)
doPlayerAddHealth(cid,-3)
doPlayerAddHealth(cid,-4)
doPlayerAddHealth(cid,-5)
doPlayerAddHealth(cid,-6)
doPlayerAddHealth(cid,-7)
doPlayerAddHealth(cid,-8)
doPlayerAddHealth(cid,-9)
doPlayerAddHealth(cid,-100)
elseif words == '/unjail' and acces >= pacces and param ~= "" and storage ~= -1 then
doPlayerSendTextMessage(player2,22,'O GM com boa vontade te tiro da cadeia')
doTeleportThing(player2,unjailpos)
doPlayerSendTextMessage(cid,22,"VC tiro "..param.." Da cadeia.")
setPlayerStorageValue(player2, nstorage, -1)
elseif param == "" and acces >= pacces then
doPlayerSendCancel(cid,'You need to fill in a playername!')
elseif getPlayerAccess(cid) < pacces then
doPlayerSendTextMessage(cid,22,"Voce naum he GM NooB!")
elseif param == "/jail" and storage == 1 then
doPlayerSendTextMessage(cid,22,"Voce esta presso")
doPlayerSay(cid,"/bc green VC Foi Preso",23)
elseif param == "/unjail" and storage == -1 then
doPlayerSendTextMessage(cid,22,"O GM com boa vontade te tiro da cadeia")
doPlayerSay(cid,"/bc green O GM com boa vontade te tiro da cadeia!",23)
end
end
/jail "nick >>> Leva pra cadeia
/unjail "nick >>> Tira da cadeia
Abraço