andrex123 Posted January 31, 2012 Posted January 31, 2012 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
Castillo Posted January 31, 2012 Posted January 31, 2012 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)
andrex123 Posted January 31, 2012 Author Posted January 31, 2012 ok, gracias 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
Castillo Posted January 31, 2012 Posted January 31, 2012 setTimer(function () marker1 = createMarker() end, 500, 1) Deberia funcionar.
andrex123 Posted January 31, 2012 Author Posted January 31, 2012 Isiste una funcion dentro del setTimer, que crea un marker?
andrex123 Posted January 31, 2012 Author Posted January 31, 2012 a ok, y hay alguna funcion que le envie un mensaje por via chat al un team? creado con esto?: createTeam
Castillo Posted January 31, 2012 Posted January 31, 2012 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.
andrex123 Posted January 31, 2012 Author Posted January 31, 2012 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)
Castillo Posted January 31, 2012 Posted January 31, 2012 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)
Recommended Posts