maauroo Posted August 16, 2013 Posted August 16, 2013 Hola Como estan? Me gustaria hacer carrera con checkpoint pero en Gamemode "Modo Libre" Se entiende ?? Se lo agradesco!
FraN-724 Posted August 16, 2013 Posted August 16, 2013 Podrias utilizar createMarker getPedOccupiedVehicle destroyElement
maauroo Posted August 16, 2013 Author Posted August 16, 2013 Pero empenzando primero por lo checkpoint. Como Uno todas las posiciones de los Checkpoint ?
FraN-724 Posted August 16, 2013 Posted August 16, 2013 Como? no te entiendo a lo que me quieres decir, si te refieres a como crear los checkpoints necesitarías createMarker, ejemplo: local theMarker = createMarker ( 2564.5, 245.435, 2.99, "checkpoint", 1.5, 255, 255, 0, 170 )
GamerDeMTA Posted August 16, 2013 Posted August 16, 2013 Pero empenzando primero por lo checkpoint. Como Uno todas las posiciones de los Checkpoint ? creo q dice como obtener la pos. Usa /start runcode y despues /crun getElementPosition(getLocalPlayer()) Y copia las pos ponlos con comas y quita los "[number"], y ponlos en creatrMarker
maauroo Posted August 17, 2013 Author Posted August 17, 2013 osea ponele q en una carrera hay 10 posiciones de checkpoint,Como hago para scriptear los 10 checkpoint ??
FraN-724 Posted August 17, 2013 Posted August 17, 2013 Entra al map editor, elijes la definition race y donde dice checkpoints los elijes y los pones. Suerte.
maauroo Posted August 17, 2013 Author Posted August 17, 2013 buena idea, Pero como hago la funcion q pasa Del Primer Checkpoint al Segundo y asi, Hasta llegar al Final del checkpoint.se entiende? Es como el Gamemode Race pero yo lo quiero poner en modo libre.
Bc# Posted August 17, 2013 Posted August 17, 2013 local chectpoint = {} function points(element) local chectpoint[1] = createMarker (.... if (element == getLocalPlayer()) then if (getElementType(element) == "player") then if (isPedInVehicle(element)) then if (source==chectpoint[1]) then local chectpoint[2] = createMarker (.... destroyElement(chectpoint[1]) end if (source==chectpoint[2]) then local chectpoint[3] = createMarker (.... destroyElement(chectpoint[2]) end if (source==chectpoint[3]) then local chectpoint[4] = createMarker (.... destroyElement(chectpoint[3]) end --Y asi sigues hasta completar los chectpoints que quieras. end end end end addEventHandler ( "onClientMarkerHit", getRootElement() ,points)
maauroo Posted August 17, 2013 Author Posted August 17, 2013 Bc Donde agrago la posicion de los checkpoint? local chectpoint = {} ? y Al final de checkpoint agregar un texto q el "jugador 1" gano y asi.
Bc# Posted August 17, 2013 Posted August 17, 2013 Bc Donde agrago la posicion de los checkpoint? local chectpoint = {} ? y Al final de checkpoint agregar un texto q el "jugador 1" gano y asi. Mira donde aparece: createMarker (.... donde estan los puntos suspensivos (....) tienes que agregarle los argumentos del marker, lo otro solo tienes que agregar un texto cuando el jugador llege al marker final, pero lo tienes que hacer tu, yo tampoco pretendo hacerte todo el script, solo te doy una idea y tu lo haces.
Recommended Posts