Jump to content

[Ayuda]Zona


Recommended Posts

Posted
function teleport(source) 
setElementPosition(source, x, y, z) 
end 
addCommandHandler("zona", teleport) 

Posted

Muchas gracias Sasuke Eres el mejor :D

Y para agregarle Un Mensage cada 5 minutos seria haci?

function teleport(source) 
setElementPosition(source, x, y, z) 
outputChatBox ( "Aqui el texto", getRootElement(), 255, 0, 0, true ) 
setTimer ( function()  
end, 5000, 1 ) 
end 
addCommandHandler("zona", teleport) 

Posted

function Chat () 
    outputChatBox ( "Aqui el texto", getRootElement(), 255, 0, 0, true) -- Solo va true si usas colores HTML. 
end 
setTimer(Chat, 500000,0) 
Posted

Nod Haci no me anda

function teleport(source) 
setElementPosition(source, -2522.9711914063, -637.05572509766, 147.90631103516) 
function Chat () 
    outputChatBox ( "Aqui el texto", getRootElement(), 255, 0, 0, true) -- Solo va true si usas colores HTML. 
end 
setTimer(Chat, 50000,1) 
end 
addCommandHandler("zonaafk", teleport) 

Posted (edited)

No te va a andar, porque Yo solo te dí la funcion para que aparesca el mensaje en el chat.

Edited by Guest
Posted
function teleport(source) 
    setElementPosition(source, -2522.9711914063, -637.05572509766, 147.90631103516) 
    setTimer(function() 
                      outputChatBox("Ola k ase", root, 255, 0, 0, true) 
                  end, 300000,1) 
end 
addCommandHandler("zonaafk", teleport) 

Posted

Ham intenta esto:

function teleport(source) 
setElementPosition(source, -2522.9711914063, -637.05572509766, 147.90631103516) 
setTimer (outputChatBox, 3000, 1, source, "Aqui el texto", 255, 0, 0, true) 
end 
addCommandHandler("zonaafk", teleport) 

Posted

renk el tuyo me funciono pero cada vez q ponia /zonaafk hay me decia el texto y no lo quiero haci quiero q todos lo lean sin escribir un comando ah alvarez y el tuyo me dice bad argument ouputChatBox

Posted (edited)

Hmm creo que seria algo asi:

local lazona = createColCuboid ( X, Y, Z, 10.0, 10.0, 10.0 ) -- Aqui tu colShape 
  
function teleport(source) 
setElementPosition(source, -2522.9711914063, -637.05572509766, 147.90631103516) 
setTimer(outputChatBox, 3000, 1, getRootElement(), "Aqui el texto", 255, 0, 0, true) 
end 
else  
if ( isElementWithinColShape ( source, lazona ) ) then 
removeCommandHandler ( "zonaafk" ) 
outputChatBox ( "Ya estas en la Zona AFK", getRootElement(), 255, 0, 0, true ) 
end 
end 
addCommandHandler("zonaafk", teleport) 
  

Edited by Guest
Posted
Hmm creo que seria algo asi:
local lazona = createColCuboid ( X, Y, Z, 10.0, 10.0, 10.0 ) -- Aqui tu colShape 
  
function teleport(source) 
setElementPosition(source, -2522.9711914063, -637.05572509766, 147.90631103516) 
setTimer(outputChatBox, 3000, 1, getRootElement(), "Aqui el texto", 255, 0, 0, true) 
end 
else  
if ( isElementWithinColShape ( source, lazona ) ) then 
removeCommandHandler ( "zonaafk" ) 
outputChatBox ( "Ya estas en la Zona AFK", getRootElement(), 255, 0, 0, true ) 
end 
addCommandHandler("zonaafk", teleport) 
  

Te falta un 'end'.

Posted

Mal. Alvarez usas un else y ni siquiera abriste un if.

Prueba asi:

local lazona = createColCuboid ( X, Y, Z, 10.0, 10.0, 10.0 ) -- Aqui tu colShape 
  
function teleport(source) 
if ( not isElementWithinColShape ( source, lazona ) ) then 
setElementPosition(source, -2522.9711914063, -637.05572509766, 147.90631103516) 
setTimer(outputChatBox, 3000, 1, "Aqui el texto", root, 255, 0, 0, true) 
outputChatBox ( "Ya estas en la Zona AFK", getRootElement(), 255, 0, 0, true ) 
end 
end 
addCommandHandler("zonaafk", teleport) 
  

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...