-
Posts
2,869 -
Joined
-
Last visited
Everything posted by Alexs
-
Tengo 2 Problemas: Me mueve con vehiculo y todo al Map El Mapa (en el interior 15) es invisible Como lo arreglo? Intente con: addEventHandler ( "onVehicleEnter", getRootElement(), journeyin ) pero queda igual
-
Si, con eso dice que ya se puede encargar el, pero aprovechando el hilo, sabes que esta mal con esto? function checkjourney( res ) idvehiculo = getElementByID("Journey1") markador = createMarker(182.19999694824, -93.400001525879, 546.20001220703, 'cylinder', 1.0, 0, 0, 255, 155) setElementInterior ( markador, 15 ) end addEventHandler ( "onResourceStart", getRootElement(), checkjourney ) function journeyin( thePlayer, seat, jacked ) idjourney = getElementID ( source ) if (id == Journey1) and (seat ~= 0) then setElementPosition(thePlayer, 182.19999694824, -93.400001525879, 546.20001220703) setElementInterior(thePlayer, 15) setElementDimension(thePlayer, 0) end end addEventHandler ( "onVehicleEnter", getRootElement(), journeyin ) function journeyout( hitElement, matchingDimension ) local vx,vy,vz = getElementPosition( idvehiculo ) setElementPosition ( hitElement, vx,vy + 2,vz) end end addEventHandler( "onMarkerHit", markador, journeyout )
-
Hola a Todos, un amigo me pidio que lo ayudara con esto pero no se ni que tiene mal por que no me dijo y se fue, lo intente arreglar y nada Server createBlip ( 2799, -2495, 13, 62 ) function createSpartanTeam () SpartanTeam = createTeam ("Spartan", 6, 183, 248) end addEventHandler ("onResourceStart", resourceRoot, createSpartanTeam) function joinSpartan() setPlayerTeam(source,SpartanTeam) setElementModel(source,103) giveWeapon ( source, 20, 300 ) setElementData( source, "Occupation", "Spartan", true ) outputChatBox("Ahora eres un Spartan",source,0,255,0) end addEvent("setSpartan", true) addEventHandler("setSpartan",root,joinSpartan) addEvent("spartan:healing", true) addEventHandler("spartan:healing", root, function (spartan) if (getElementHealth(source) < 100) then local Heal = getElementHealth(source) + 10 -- New health setElementHealth(source, Heal) if (Heal > 100) then setElementHealth(source, 100) end givePlayerMoney(spartan, 100) -- Gives 100$ to the medic each time the function is executed takePlayerMoney(source, 100) -- Takes 100$ from the source when he get healed end end) Client MarcadosDos = createmarker( 2799, -2495, 13, "Cylinder", 2, 6, 183, 248, 153) GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} function guiMyCwindow(w,h,t) local x,y = guiGetScreenSize() return guiCreateWindow((x-w)/2,(y-h)/2,w,h,t,false) end windowjob = guiMyCwindow(301,250,"Spartan job") guiSetVisible(windowjob, false) GUIEditor_Button[1] = guiCreateButton(22,200,108,35,"Unirme",false,windowjob) GUIEditor_Label[1] = guiCreateLabel(193,-103,5,5,"",false,windowjob) GUIEditor_Button[2] = guiCreateButton(179,200,110,36,"Cancelar",false,windowjob) GUIEditor_Memo[1] = guiCreateMemo(19,33,273,100,"Si deseas unirte a los Spartanos dale en Unirme",false,windowjob) guiEditSetReadOnly(GUIEditor_Memo[1],true) function Spartanjob(hitElement) if getElementType(hitElement) == "player" and (hitElement == localPlayer) then if not guiGetVisible(windowjob) then guiSetVisible(windowjob, true) showCursor(true) end end end addEventHandler("onClientMarkerHit", MarcadosDos, Spartanjob) function Spartanjobleave(leaveElement) if getElementType(leaveElement) == "player" and (leaveElement == localPlayer) then if guiGetVisible(windowjob) then guiSetVisible(windowjob, false) showCursor(false) end end end addEventHandler("onClientMarkerLeave", MarcadosDos, Spartanjobleave) function joinTeam() triggerServerEvent("setSpartan",localPlayer) guiSetVisible(windowjob, false) showCursor(false) end addEventHandler("onClientGUIClick", GUIEditor_Button[1] , joinTeam, false) function removeSpartanWindow() guiSetVisible(windowjob, false) showCursor(false) end addEventHandler("onClientGUIClick", GUIEditor_Button[2] , removeSpartanWindow, false) addEventHandler("onClientPlayerDamage", localPlayer,
-
function removerdeclanmcc (playerSource, commandName, accountName) local usuariomcc = getAccountName ( getPlayerAccount ( playerSource ) ) if isObjectInACLGroup ("user."..usuariomcc, aclGetGroup ( "LiderSAS" ) ) then if ( accountName ) then aclGroupRemoveObject ( aclGetGroup ( "sas" ), "user.".. accountName ) outputChatBox ( "El Usuario '".. accountName .."' fue eliminado de S.A.S", playerSource ) aclReload ( ) else outputChatBox ( "No especificaste Usuario.", playerSource ) outputChatBox ( "Syntax: /quitarsas [Nombre de Cuenta]", playerSource ) end end end addCommandHandler ("quitarsas", removerdeclanmcc)
-
no existe el argumento fade?
-
Gracias, usare el texts.xml ya que es mas simple
-
exporta funciones o me ayuda a hacerlo con getDistanceBetweenPoints3D ?
-
Hola a Todos, queria saber que funcion se usa para hacer escritura en el aire como en el House System que aparece sobre el marcador el dueño y el precio...
-
Error al instalar mta sa 1.3
Alexs replied to starksZ's topic in Ayuda relacionada al cliente/servidor
pues no deberia pedirtelo si ya esta instalado, a mi nunca me lo pidio... -
Error al instalar mta sa 1.3
Alexs replied to starksZ's topic in Ayuda relacionada al cliente/servidor
Intentaste desde la web? http://www.microsoft.com/en-us/download/details.aspx?id=29 -
Se Necesita Gente Para Crear Un CIT Proyect en Español
Alexs replied to mercenario1995's topic in Scripting
Para hacer un servidor o cualquier proyecto solo falta animo, alguien cierre este Post, nadie ayudara a nadie con esa actitud y esta armando forobardo -
Tu scoreboard se llama Scoremota??
-
Se Necesita Gente Para Crear Un CIT Proyect en Español
Alexs replied to mercenario1995's topic in Scripting
Creo que solo esta buscando Scripters Gratis por que no sabe hacer las cosas el solo... -
exports [ "scoremota" ]:scoreboardAddColumn ( "ip" ) function IP() ip = getPlayerIP ( source ) setElementData ( source, "ip", ip ) end end addEventHandler ( "onPlayerJoin", getRootElement(), IP ) Intenta asi...
-
Se Necesita Gente Para Crear Un CIT Proyect en Español
Alexs replied to mercenario1995's topic in Scripting
Creo que a todos les pasa igual, es que es otro idioma y uno se acostumbra a sentirlos mas formales, pero si pasas 1 dia en 4Chan te das cuenta de que en verdad joden mucho mas que nosotros, y concuerdo en lo de la manera de escribir, dudo que a alguien le interese un proyecto asi -
Se Necesita Gente Para Crear Un CIT Proyect en Español
Alexs replied to mercenario1995's topic in Scripting
Iba todo bien hasta que dijiste "hacer pruebas" dudo que se inscriban tantos como para eso.... -
Quiza esta mal otra cosa, chequealo bien todo, a mi me va de 10 asi como lo tenes
-
Pues revisa todo bien, quiza hiciste algo mal
-
addEventHandler ( "onResourceStart", resourceRoot, function ( ) vehicles = { } for index = 1, 15 do vehicles [ getElementByID ( "autos"..tostring( index )) ] = true end end ) addEventHandler ( "onVehicleStartEnter", root, function ( thePlayer, seat ) if ( seat ~= 0 ) then return end if ( vehicles [ source ] ) then if ( getPlayerTeam ( thePlayer ) and getTeamName ( getPlayerTeam ( thePlayer ) ) ~= "SAS" ) then outputChatBox ( "Este vehiculo esta restringido a los miembros de SAS", thePlayer, 255, 0, 0 ) cancelEvent ( ) end end end ) eso en el server side y el .map en otro archivo
-
JAJAJAJA, @ElMota le paso el que habiamos intentado y no habiamos puesto el tostring xDD, Ok, entonces todo Ok
-
ajam, onPlayerJoin = Evento no funcion
-
wow, ese script no posee mucho sentido y se utiliza false no False, y respecto a webs, hay muchas, pero es mejor aprender aca mismo en el foro, yo aprendi con ejemplos y la wiki, aprovechala, no todos los juegos poseen una pagina tan amplia, aunque yo te puedo decir que no poseo ganas de ayudarte viendo como trataste a SolidSnake14, no es la Obligacion de nadie ayudar....
-
Lo pones en un .map y el otro en el server side?
