
Kilfwan
Members-
Posts
363 -
Joined
-
Last visited
Everything posted by Kilfwan
-
+10 Estás en un foro, no en Taringa. No le veo nada malo a usar scripts viejos... Pruebalo en tu servidor y dejalo 1min y despues me avisas.
-
Me pasan un gang chat Para el Gang sistem de Castillo?
Kilfwan replied to Kilfwan's topic in Recursos y aportes
GRACIAS -
Podrian ayudarme con eso?
-
Yo use ese recurso creemelo DA EL LAG MAS GRANDE DE MTASA
-
tomas mira el reply que Hice del post del onMarkerHit..
-
cOMO PUEDO HACER QUE APARESCA EL CARRO EN LA POSICION DEL JUGADOR? POR QUE EN SERVER-SIDE NO EH VISTO FUNCION ALGUNA.
-
Enargy mira mi otro post.
-
Copio el que dejo tomas?
-
A la hora que entro a los markers del house sistem se abre el panel del carro sistem ,, Que hago aora?
-
Hice un car shop , pero al momento que lo puse en mi servidor ya no sale ni la gui y ni el cursor se muestra, esta todo bien scripteado segun yo miren: Client: GUIEditor = { staticimage = {} } function carrosP() guiCarros = guiCreateWindow(221, 93, 358, 432, "Carros Modificados", false) guiWindowSetSizable(guiCarros, false) guiSetAlpha(guiCarros, 0.83) label = guiCreateLabel(10, 36, 338, 21, "Al Comprar el Carro usa F2 Para Guardarlo.", false, guiCarros) guiSetFont(label, "default-bold-small") guiLabelSetColor(label, 15, 239, 15) GUIEditor.staticimage[1] = guiCreateStaticImage(19, 73, 67, 57, "images/3.png", false, guiCarros) GUIEditor.staticimage[2] = guiCreateStaticImage(142, 73, 72, 57, "images/4.png", false, guiCarros) GUIEditor.staticimage[3] = guiCreateStaticImage(270, 72, 68, 60, "images/6.png", false, guiCarros) subur = guiCreateButton(134, 136, 90, 23, "Sub Urban 10000$", false, guiCarros) guiSetFont(subur, "default-small") dodge = guiCreateButton(9, 136, 90, 23, "Dodge Viper 18000$", false, guiCarros) guiSetFont(dodge, "default-small") lamboi = guiCreateButton(260, 136, 88, 23, "Lamborguini 20000$", false, guiCarros) guiSetFont(lamboi, "default-small") GUIEditor.staticimage[4] = guiCreateStaticImage(19, 290, 69, 63, "images/10.png", false, guiCarros) porsche = guiCreateButton(9, 363, 90, 23, "Porsche 25400$", false, guiCarros) guiSetFont(porsche, "default-small") GUIEditor.staticimage[5] = guiCreateStaticImage(143, 292, 71, 61, "images/15.png", false, guiCarros) GUIEditor.staticimage[6] = guiCreateStaticImage(270, 292, 68, 61, "images/11.png", false, guiCarros) f1c = guiCreateButton(133, 363, 90, 23, "Formula 1 32000$", false, guiCarros) guiSetFont(f1c, "default-small") cam = guiCreateButton(258, 363, 90, 23, "Camaro 21000$", false, guiCarros) guiSetFont(cam, "default-small") GUIEditor.staticimage[7] = guiCreateStaticImage(142, 175, 72, 61, "images/22.png", false, guiCarros) bmw = guiCreateButton(134, 246, 90, 23, "BMW 23000$", false, guiCarros) guiSetFont(bmw, "default-small") close = guiCreateButton(293, 398, 55, 24, "Cerrar", false, guiCarros) guiSetFont(close, "default-bold-small") guiSetVisible(guiCarros, false) showCursor(false) addEventHandler("onClientGUIClick", close, cierro, false) addEventHandler("onClientGUIClick", subur, subb, false) addEventHandler("onClientGUIClick", dodge, dogge, false) addEventHandler("onClientGUIClick", lamboi, lambor, false) addEventHandler("onClientGUIClick", porsche, pors, false) addEventHandler("onClientGUIClick", f1c, formula, false) addEventHandler("onClientGUIClick", cam, camar, false) addEventHandler("onClientGUIClick", bmw, bmmw, false) end addEventHandler("onClientResourceStart", resourceRoot, carrosP) function abrir( ) guiSetVisible (guiCarros, true) showCursor(true) end addEvent( "AbrirPanel", true ) addEventHandler( "AbrirPanel", localPlayer, abrir ) function cierro() guiSetVisible(guiCarros, false) showCursor(false) end function dogge ( ) showCursor(true) triggerServerEvent("darDodge", getLocalPlayer() ) end function subb ( ) showCursor(true) triggerServerEvent("darSub", getLocalPlayer() ) end el server side local entro = createMarker ( 559.48969 + 2,-1262.79260 + 2, 16, "cylinder", 1.5, 255, 0, 0, 170) local entro = createMarker ( 2132.33447 + 2,-1140.62585 + 2, 24.3, "cylinder", 1.5, 255, 0, 0, 170) local entro = createMarker ( -1638.22449 + 2,1204.40271 + 2, 6.2, "cylinder", 1.5, 255, 0, 0, 170) local entro = createMarker ( -1958.16150 + 2,287.20938 + 2, 34.5, "cylinder", 1.5, 255, 0, 0, 170) local myBlip = createBlip( 559.48969, -1262.79260, 16, 55, 0, 0, 0, 255, 300 ) local myBlip = createBlip( 2132.33447, -1140.62585, 25.21735, 55, 0, 0, 0, 255, 10 ) local myBlip = createBlip( -1638.22449, 1204.40271, 7.17969, 55, 0, 0, 0, 255, 10 ) local myBlip = createBlip( -1958.16150, 287.20938, 35.46875, 55, 0, 0, 0, 255, 10 ) function entro_al_marcador ( player ) triggerClientEvent(player, "AbrirPanel", player) end addEventHandler ( "onMarkerHit", entro, entro_al_marcador ) function dogd(player) local money = getPlayerMoney( source ) -- get the amount of money from the player who entered the command if ( money ) ~= ( Player) then createVehicle( 541, 560.15289, -1261.61975, 17.24219) takePlayerMoney( source, 18000 ) -- if money is more than 1000 outputChatBox("Comprastes un dodge Viper por 18k",source, 0, 255, 0, true) else outputChatBox("No tienes dinero",source, 255, 0, 0, true) end end addEvent("darDodge", true) addEventHandler("darDodge", root, dogd) function dogdd(player) local money = getPlayerMoney( source ) -- get the amount of money from the player who entered the command if ( money ) ~= ( Player) then createVehicle( 411, 560.15289, -1261.61975, 17.24219) takePlayerMoney( source, 10000 ) -- if money is more than 1000 outputChatBox("Comprastes un Sub Urban por 10k, No olvides Guardarlo en f2 o lo Perderas",source, 0, 255, 0, true) else outputChatBox("No tienes dinero",source, 255, 0, 0, true) end end addEvent("darSub", true) Ojala me ayuden.
-
Solo le cargo el extra_health y le agro mas numeros donde dice exports extrahealth
-
Este son los scripts local hillRadar = createRadarArea ( 2520.1318359375, -953.83752441406, 200, 200, 181, 0, 0, 255 ) function Nemesisbymanawydan ( ) baz = createObject ( 360, 622.4934082031, -847.33459472656, 75.0484313964, 0, 0, 0 ) nemesi = exports [ "slothBot" ]:spawnBot ( 2622.4934082031, -847.33459472656, 75.048431396484, 90, math.random ( 300, 303 ), 0, 0, Nemesis, 38, "hunting", true ) setElementModel ( nemesi, 107 ) outputChatBox ("#9E0000Nemesis: #9E0000 Grrr Grrr!",getRootElement(), 255, 255, 255, true ) local myBlip = (createBlipAttachedTo ( nemesi, 0 )) attachElements ( baz, nemesi, 0.2, 0.1, 0.5, 0, 90, 0 ) triggerClientEvent ( "nsound", root ) triggerClientEvent ( "nemesismissel", root ) setTimer( function() exports.extra_health:setElementExtraHealth(nemesi, 1000) end, 1100, 0) end addEventHandler("onResourceStart", resourceRoot, Nemesisbymanawydan) addEvent("onBotWasted", true) addEventHandler("onBotWasted", getRootElement) function money (theKiller) if (source == nemesi) then givePlayerMoney(theKiller,math.random(20000)) outputChatBox ( getPlayerName ( theKiller ) .. " #081DBFMato al Boss!, Ha Ganado $20.000 como recompensa",getRootElement(), 255, 255, 255, true ) setTimer(Nemesisbymanawydan, 16000, 1) end end addEvent("onBotWasted", true) addEventHandler("onBotWasted", getRootElement(), money) function destroy () if ( not isElement ( nemesi ) ) then destroyElement(myBlip) end end addEvent("onBotWasted", true) addEventHandler("onBotWasted", getRootElement(), destroy) Son dos archivos este es el otro: local hillRadar = createRadarArea ( 2520.1318359375, -953.83752441406, 200, 200, 181, 0, 0, 255 ) function Nemesisbymanawydan ( ) baz = createObject ( 360, 622.4934082031, -847.33459472656, 75.0484313964, 0, 0, 0 ) nemesi = exports [ "slothBot" ]:spawnBot ( 2622.4934082031, -847.33459472656, 75.048431396484, 90, math.random ( 300, 303 ), 0, 0, Nemesis, 38, "hunting", true ) setElementModel ( nemesi, 107 ) outputChatBox ("#9E0000Nemesis: #9E0000 Grrr Grrr!",getRootElement(), 255, 255, 255, true ) local myBlip = (createBlipAttachedTo ( nemesi, 0 )) attachElements ( baz, nemesi, 0.2, 0.1, 0.5, 0, 90, 0 ) triggerClientEvent ( "nsound", root ) triggerClientEvent ( "nemesismissel", root ) setTimer( function() exports.extra_health:setElementExtraHealth(nemesi, 1000) end, 1100, 0) end addEventHandler("onResourceStart", resourceRoot, Nemesisbymanawydan) addEvent("onBotWasted", true) addEventHandler("onBotWasted", getRootElement) function money (theKiller) if (source == nemesi) then givePlayerMoney(theKiller,math.random(20000)) outputChatBox ( getPlayerName ( theKiller ) .. " #081DBFMato al Boss!, Ha Ganado $20.000 como recompensa",getRootElement(), 255, 255, 255, true ) setTimer(Nemesisbymanawydan, 16000, 1) end end addEvent("onBotWasted", true) addEventHandler("onBotWasted", getRootElement(), money) function destroy () if ( not isElement ( nemesi ) ) then destroyElement(myBlip) end end addEvent("onBotWasted", true) addEventHandler("onBotWasted", getRootElement(), destroy)
-
Ya lo solucione da por Cerrado el Post.. Use el getElementModel Lo encontre buscado el getPlayerSKIN
-
Gracias de antemano ya habia solucionado, Pero cuando el jugador termina de seleccionar y hace spawn no se Queda el skin que el selecciono sino que se pone el de cj ( el 0 ) Que puedo hacer hay?
-
Yo copie mal el codigo pero que fue que reemplazastes? yo veo lo mismo, Pero ahora tengo un problema, el jugador ya no esta viendo para el lugar que quiero sino hacia la derecha y yo quiero que vea para atras de el.
-
Estoy haciendo un recurso de seleccionar skin cuando ingresas al servidor, todo va bien pero cuando entra el jugador no se spawneea al punto exacto donde quiero que el aparesca , y despues cuando de finish se spawnee en cualkier lugar, La cosa es que no spawnea cuando entra , si no que se spawnea en las posiciones por defecto del freeroam spawnPlayer (thePlayer, 2170.20972, 1483.10522, 24.14063, 0, 0, 0, 0, nil) -- spawns player with random skin fadeCamera (thePlayer, true) setCameraTarget (thePlayer, thePlayer) end addEventHandler("onPlayerJoin", resourceRoot, spawnOnLogin) Que le agrego o algo? por que La gui aparece pero el jugador no da spawn
-
Si tengo algunos conocimientos y enseño lo que yo se, pedi que me enseñen lo de el gridlist y puse mi ejemplo para q el no ponga ese if de por gusto. Si yo posteo Algo tomas o alguin mas que lo vea corrijanme y no traten de de hacer quedarme mal si no que ayuden o si van a hacer eso mejor callense y borren mi post. Por sierto No te interesa si me hubieran estafado no es tu problema ni tu dinero, Solo queria pagar a medias con alguien y ya, A si que te vas largo al carajo.
-
Con razon que usaba thePlayer en triggerclient y no funcionaba LOL ! :v luego lo pruebo con un amigo a ver si funciona. y sabes hacer lo de el gridlist?
-
Alguien que me ayude con esa funcion del Marker hit ??
-
No quites nunca el function nombre() a un gui por que te va a dar error , y no es nesecario que uses el if variable then ya que esa mas se usa para esto mira: function clearChat( thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) -- get his account name if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then outputChatBox(" ", getRootElement(), 0, 0, 0, true) outputChatBox(" ", getRootElement(), 0, 0, 0, true) outputChatBox(" ", getRootElement(), 0, 0, 0, true) outputChatBox(" ", getRootElement(), 0, 0, 0, true) outputChatBox(" .... ", getRootElement(), 0, 0, 0, true) outputChatBox(" ", getRootElement(), 0, 0, 0, true) outputChatBox(" ", getRootElement(), 0, 0, 0, true) outputChatBox(" ", getRootElement(), 0, 0, 0, true) outputChatBox(" ", getRootElement(), 0, 0, 0, true) outputChatBox(" ", getRootElement(), 0, 0, 0, true) outputChatBox(" ", getRootElement(), 0, 0, 0, true) outputChatBox("INFO : [Admin] Ha Limpiado el Chat", getRootElement(), 255, 255, 0, true) else outputChatBox(" No eres administrador", thePlayer, 255, 255, 0, true) --- osea para que uses else para que cuando el jugador no es nada en dicho grupo se le diga que no es nada o ocurrio un error. end
-
Pero si es lo mismo solo me acomodastes las funciones y ademas quitastes el function () Que en lua no puedes iniciar algo un poco mas avanzado , sin hacer una funcion ._. , tu aun no tienes muchos conocimientos deja que me ayuden enargy o tomas o cualquier otro tu todavia no tienes muchos conocimientos.
-
Hola a todos tengo un problema, es que hice algunos scripts y todos a lo bien pero los he echo para que cuando se entre al marker se abra el gui y se abre y todo, pero en vez de que solo a mi se me haga visible la gui, a todos los jugadores les aparece la gui y no se como solucionar. aqui el codigo: function panelSicario() guiSicario = guiCreateWindow(524, 219, 227, 332, "Sicariato Job", false) guiWindowSetSizable(guiSicario, false) guiSetAlpha(guiSicario, 0.45) -- Botones entrar = guiCreateButton(75, 278, 65, 39, "Entrar", false, guiSicario) cierra = guiCreateButton(150, 278, 65, 39, "X", false, guiSicario) -- Labels GUIEditor.label[1] = guiCreateLabel(17, 25, 198, 15, "Este es un Trabajo De sicario tienes", false, guiSicario) GUIEditor.label[2] = guiCreateLabel(17, 55, 198, 15, "que matar para Ganar Dinero.", false, guiSicario) GUIEditor.label[3] = guiCreateLabel(17, 40, 198, 15, "que Buscar a la Persona que Tienes ", false, guiSicario) GUIEditor.label[4] = guiCreateLabel(18, 108, 197, 17, "Se te dara un auto y se te indicara", false, guiSicario) GUIEditor.label[5] = guiCreateLabel(18, 130, 197, 17, "a donde tendras que ir.", false, guiSicario) guiSetVisible( guiSicario, false) showCursor(false) addEventHandler("onClientGUIClick", entrar, darTeam, false) addEventHandler("onClientGUIClick", cierra, close, false) end addEventHandler("onClientResourceStart", resourceRoot, panelSicario) local entro = createMarker (864.61279 + 2,-28.02875 + 2, 62.1, "cylinder", 1.5, 255, 0, 0, 170 ) local carro = createMarker (861.57001 +2, -13.5 +2, 62.1, "cylinder", 1.5, 255, 0, 0, 170 ) function harkerHit ( hitPlayer ) guiSetVisible (guiSicario, true) showCursor(true) end addEventHandler ( "onClientMarkerHit", entro, harkerHit ) No creo que sea nesecario publicar todo el codigo y resumi la parte q esta mal. Y tambien queria saber como Hago para que cuando de click dos veces en un row de una gridlist se de este Objeto Osea desde una tabla y esa parte no entiendo sobre seleccionarlos dos veces. Podrian explicarme?
-
Una pregunta para que Sirve el if not
-
Por eso descarge toda la referencia de lua osea el manualk y lo stoy leyendo y ahy viene todas esas funciones