maauroo Posted August 16, 2013 Share Posted August 16, 2013 Hola Como estan? Me gustaria hacer carrera con checkpoint pero en Gamemode "Modo Libre" Se entiende ?? Se lo agradesco! Link to comment
FraN-724 Posted August 16, 2013 Share Posted August 16, 2013 Podrias utilizar createMarker getPedOccupiedVehicle destroyElement Link to comment
maauroo Posted August 16, 2013 Author Share Posted August 16, 2013 Pero empenzando primero por lo checkpoint. Como Uno todas las posiciones de los Checkpoint ? Link to comment
FraN-724 Posted August 16, 2013 Share 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 ) Link to comment
GamerDeMTA Posted August 16, 2013 Share 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 Link to comment
maauroo Posted August 17, 2013 Author Share Posted August 17, 2013 osea ponele q en una carrera hay 10 posiciones de checkpoint,Como hago para scriptear los 10 checkpoint ?? Link to comment
FraN-724 Posted August 17, 2013 Share Posted August 17, 2013 Entra al map editor, elijes la definition race y donde dice checkpoints los elijes y los pones. Suerte. Link to comment
maauroo Posted August 17, 2013 Author Share 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. Link to comment
Bc# Posted August 17, 2013 Share 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) Link to comment
maauroo Posted August 17, 2013 Author Share 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. Link to comment
Bc# Posted August 17, 2013 Share 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. Link to comment
Recommended Posts