-
Posts
144 -
Joined
-
Last visited
Everything posted by Nicolas ECM
-
No me sirvio, esto es lo que me aparece en el debugscript con el primer codigo que coloque: Bad argument @ "addEventHandler"[Expected element at argument 2,got nil] linea 41.
-
Lol JAJA el error que me aparece es que no me abre el panel del final, entro al marker y no pasa nada ayuda porfavor .
-
Hola a todos, tengo un error en un script, lo que hace el script es que se crea un marker y al entrar al marker aparece un panel, si le doy en el boton aceptar se creara otro marker y toca ir hasta el para terminar la mision y que aparesca un panel de final pero hay es donde tengo el error y es que al entrar en el marker del final me aparece un error, dejo el script abajo. client-side markerinicio = createMarker ( 2429.818359375, -1677.53515625, 12.625685119629, "cylinder",1.8, 0, 0, 255, 255 ) function Panel1() window = guiCreateWindow(456, 212, 520, 452, "MISION RANGO C", false) guiWindowSetSizable(window, false) botonaceptar = guiCreateButton(279, 25, 227, 76, "Aceptar", false, window) botonsalir = guiCreateButton(278, 339, 228, 82, "Salir", false, window) showCursor(true) addEventHandler("onClientGUIClick", botonaceptar,empezarmision1, false) addEventHandler("onClientGUIClick", botonaceptar, salir1, false) addEventHandler("onClientGUIClick", botonsalir,salir1, false) end function panelfinal() windowwwwwww = guiCreateWindow(480, 188, 486, 477, "ENTREGA MISION RANGO C", false) guiWindowSetSizable(windowwwwwww, false) botonnsalir = guiCreateButton(328, 187, 148, 57, "Salir", false, windowwwwwww) addEventHandler("onClientGUIClick", botonnsalir,misionterminada1, false) addEventHandler("onClientGUIClick", botonnsalir,salirfin, false) end function empezarmision1 () showCursor(true) markerfin = createMarker (612.439453125, -609.3994140625, 17.2265625, 23,"cylinder", 1.8, 0, 0, 255, 255 ) end addEventHandler('onClientMarkerHit', markerinicio, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then Panel1() showCursor( true ) end end ) addEventHandler('onClientMarkerHit', markerfin, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then panelfinal() showCursor( true ) end end ) function misionterminada1 () destroyElement ( markerfin ) end function salir1() showCursor(false) destroyElement(window) end function salirfin() showCursor(false) destroyElement(windowwwwwww) end me pueden ayudar a hacer esto porfavor ya intente de todo y no puedo arreglarlo.
-
Muchas gracias ya me sirvio , pero tengo otra duda JAJA como puedo hacer para que cuando digamos yo tenga un trabajo y tenga que ir a una posicion se cree un blip, un marker y un ped pero que solo pueda ver el que acepte el trabajo, gracias .
-
Me podrias dar un ejemplo porfavor.
-
Ok lo are en client-side pero todavia no se como hacer para que al salir de la zona tenga el mismo clima de antes, me podrias ayudar.
-
Hola a todos, tengo una duda, tengo echo un poco de un resource que quiero hacer pero no me sirve bien, quiero hacer que halla un clima en una zona de radar o colshape local AreaEntry = createColRectangle (-1472.49, -1606.62, 100, 163) local AreaLS = createRadarArea ( -1472.49, -1606.62, 100, 163, 255, 0, 0, 255, getRootElement() ) function ENTERLS (thePlayer) if (getElementType(thePlayer) == "player") then if isInsideRadarArea ( AreaLS, -1472.49, -1606.62 ) then outputChatBox("Usted a entrado a la zona de la niebla, cuidado hay trampas.", thePlayer, 136, 0, 190 ) setWeather (9) end end end addEventHandler ( "onColShapeHit", AreaEntry, ENTERLS ) function EXITLS (thePlayer) if (getElementType(thePlayer) == "player") then if isPedDead ( thePlayer ) ~= true then outputChatBox ("Usted a salido de la zona de la niebla", thePlayer, 136, 0, 190 ) setWeather () end end end addEventHandler ( "onColShapeLeave", AreaEntry, EXITLS ) tengo esto hecho no se si este bien o no, se cambia el clima a todos los jugadores, como se puede hacer para que solo se le cambie a el jugador que entre? y que al salir de la zona tenga el clima que estaba antes, porfavor ayuda.
-
[AYUDA]como tener la posicion del ped al que le apunto
Nicolas ECM replied to Nicolas ECM's topic in Scripting
Gracias me ayudaste mucho -
Muchas gracias
-
[AYUDA]como tener la posicion del ped al que le apunto
Nicolas ECM replied to Nicolas ECM's topic in Scripting
Gracias tomas me sirvio pero tengo otra duda JAJA como puedo hacer para quitarle vida a el jugador que tengo seleccionado combinado con el script de arriba se que tengo que usar esto local ppHealth = getElementHealth(target) setElementHealth (target, ppHealth - 50 ) pero no me funciona, que le agrego o que le quito no entiendo esto bien todavia porfavor ayuda. -
Hola a todos, tengo un problema con este script se crea el marker normal cuando uso el comando /a, cuando algun jugador entra a ese market se deberia morir y escribirle has caido pero no funciona me podrian ayudar porfavor, otra duda como se puede hacer para que al entrar al market se le quite el 30% de la vida al jugador que entro, porfavor ayuda . function ard (thePlayer) local x, y, z = getElementPosition ( thePlayer ) local theMarker = createMarker ( x + 2, y + 2, z, "cylinder", 1.5, 255, 255, 0, 170 ) end addCommandHandler ("a", ard) function MarkerHit(thePlayer) if getElementType ( thePlayer ) == "player" then killPed ( thePlayer ) outputChatBox ( "has caido", thePlayer ) end end addEventHandler( "onMarkerHit", theMarker, MarkerHit )
-
[AYUDA]como tener la posicion del ped al que le apunto
Nicolas ECM replied to Nicolas ECM's topic in Scripting
Tengo una duda no se puede colocar un bind o un comando para que se cree el objeto en la posicion del jugador a el que le apunto? -
[AYUDA]como tener la posicion del ped al que le apunto
Nicolas ECM replied to Nicolas ECM's topic in Scripting
Tomas me puede dar un ejemplo de como usar colshapes y como tener la posicion de el que selecciono lo estube mirando pero no pude. Alfa me podria dar un ejemplo? GRACIAS . -
Hola, tengo una duda se puede tener la posicion de algun ped o player al que le este apuntando con un arma? es para crear un objeto en la posicion de el ped, ayuda porfavor. tengo otra duda se puede hacer que un objeto genere daño, si alguien lo toca?.
-
Hola a todos dejare los videos de jutsus de naruto para mta algunos tienen link, suscribanse para dar mas jutsus y resources. Dejo mi facebook por si nesesitan algun resource o tienen alguna duda. https://www.facebook.com/NI.RUBIO
-
Hi all, i create this resources of naruto, the server name is MNS FB:https://www.facebook.com/mcnciolas208 Channel : https://www.youtube.com/user/nicolasecm Group server: https://www.facebook.com/groups/15413... Page server: https://www.facebook.com/MNS-Mta-Naru... Channel server: https://www.youtube.com/channel/UCHXP...
-
ah ok how do for the object that is created cause damage?
-
Id of object in serverside? local tiempo = 3500 addCommandHandler("doton",function( sourcePlayer ) if (getTickCount ( ) - tiempo > 5000) then outputChatBox("Doton Doryu Joheki",sourcePlayer,0,255,0,false) tiempo = getTickCount ( ) local x, y, z = getElementPosition ( sourcePlayer ) objeto = createObject ( 897, x, y, z - 8, 0, 90, 90 ) setTimer (destroyElement, 10000, 1, objeto) moveObject ( objeto, 8000, x, y - 8, z + 1 ) setPedAnimation( sourcePlayer , "freeweights", "gym_free_pickup", -1, true, false, false ) setTimer ( function ( ) setPedAnimation ( sourcePlayer ) end ,3000, 1 ) else outputChatBox("Debes esperar 5 segundos para poder utilizar este jutsu!",sourcePlayer,255,0,0,false) end end) this object should cause damage plis help.
-
Example plis
-
I want to make an object created with createObject function can do damage to any player who touches the object.
-
Hi all, i have one query about as one object produce damage, help with the functions please.
-
Lo que quiero decir esque cualquier jugador que este conectado a mi servidor yo le apunte con un arma o con el puño y despues use un bind para que aparesca un objeto cerca a la posicion de el, lo que nesesito saber es como obtener la posicion de cualquier jugador al que se le apunte.
-
Hi I need create one object in position of player when selected, please help.