Jump to content

[Ayuda]Zona


Recommended Posts

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) 

Link to comment

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) 

Link to comment
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) 

Link to comment

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
Link to comment
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'.

Link to comment

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) 
  

Link to comment
  • Recently Browsing   0 members

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