Jump to content

No funciona el script mio


andrex123

Recommended Posts

Posted

Aka el script

rutals = createMarker(1937.688, -2382.673, 13.54, 'cylinder', 5, 255, 0, 0, 150) 
  
  
function rutalss() 
 if isElementWithinMarker(localPlayer, rutals) then 
    oututChatBox ("#FF0000Prueba", 255, 255, 255, true) 
 else 
    outputChatBox("No estas en el lugar apropiado para este comando.!", 255, 0, 0) 
 end 
end 
addCommandHandler("rutals", rutalss) 

estoy en el marker y no pasa nada

Posted
rutals = createMarker(1937.688, -2382.673, 13.54, 'cylinder', 5, 255, 0, 0, 150) 
  
function rutalss() 
 if isElementWithinMarker(localPlayer, rutals) then 
    outputChatBox("#FF0000Prueba", 255, 255, 255, true) -- Pusiste "oututChatBox", es "outputChatBox". 
 else 
    outputChatBox("No estas en el lugar apropiado para este comando.!", 255, 0, 0) 
 end 
end 
addCommandHandler("rutals", rutalss) 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

ok, gracias :D

otra cosita, conque ..... cosa puedo enviarles mensaje a un team ?, y como puedo hacer que el

setTimer 

puerda crear un marker llamado marker1?, para luego borarrlo

Posted
setTimer(function () 
    marker1 = createMarker() 
end, 500, 1) 

Deberia funcionar.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Decis que al crear el team envie un mensaje a los que esten en el mismo? pero el team estara vacio cuando, porque lo acaban de crear.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

mira, quiero que un scrip, por ejemplo:

createTeam ("LS airport",0, 0,255) 
createTeam ("SF airport",0, 128,255) 
createTeam ("LV airport",0, 255,255) 
createTeam ("Chile Airport",255,0,0) 
  
addEvent("lslv",true) 
addEventHandler("lslv",root, 
function () 
        outputChatBox("**#C2C2C2Enviando informacion a la torre de control de LS...", source, 255, 255, 255, true) 
        --Aka mandarle algo a los de LS Airport, se que no habra nadien 
end) 

Posted
createTeam ("LS airport",0, 0,255) 
createTeam ("SF airport",0, 128,255) 
createTeam ("LV airport",0, 255,255) 
createTeam ("Chile Airport",255,0,0) 
  
addEvent("lslv",true) 
addEventHandler("lslv",root, 
function () 
        outputChatBox("**#C2C2C2Enviando informacion a la torre de control de LS...", source, 255, 255, 255, true) 
        for index, player in ipairs(getPlayersInTeam(getTeamFromName("LS airport"))) do 
              outputChatBox("Hola.",player) 
        end 
end) 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

  • Recently Browsing   0 members

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