-
Posts
611 -
Joined
-
Last visited
Everything posted by AlvareZ_
-
removeEventHandler
-
addEventHandler ( "onPlayerSpawn", getRootElement(), function ( source ) if ( getPlayerTeam(source) == "Nombre del Team" ) then local x, y, z = getElementPosition(source) local carro = createVehicle ( id, x, y, z + 10) warpPedIntoVehicle(source, carro) end end)
-
Cambie player por thePlayer y tenias Veh = createVehicle borre el Veh no era necesario
-
Intenta con este comando, /crear addCommandHandler("crear", function (thePlayer) local x, y, z = getElementPosition (thePlayer) createVehicle ( 411, x ,y , z + 10) end)
-
function car(player) local x ,y ,z = getElementPosition (player) Veh = createVehicle ( 411, x ,y , z + 10) end addEventHandler ("onResourceStart",getRootElement(),car)
-
armas = { [38] = true, [35] = true, [36] = true, [37] = true, [16] = true, [17] = true, [18] = true, [39] = true } function antiweapon ( previousWeaponID, currentWeaponID, source) if ( armas[ currentWeaponID ] ) then local accName = getAccountName ( getPlayerAccount ( source ) ) if ( not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Secret" ) ) ) then cancelEvent ( ) toggleControl ( source, "fire", false ) outputChatBox("Estas armas son solo para ~Secret Option~", source, 0,128,255, true) end end end addEventHandler ( "onPlayerWeaponSwitch", root, antiweapon )
-
armas = { [38] = true, [35] = true, [36] = true, [37] = true, [16] = true, [17] = true, [18] = true, [39] = true } function antiweapon ( previousWeaponID, currentWeaponID, source) if ( armas[ currentWeaponID ] ) then if ( not isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( source ) ), aclGetGroup ( "Secret" ) ) ) then cancelEvent ( ) toggleControl ( source, "fire", false ) outputChatBox("Estas armas son solo para ~Secret Option~", source, 0,128,255, true) end end end addEventHandler ( "onPlayerWeaponSwitch", root, antiweapon )
-
Ya venia venir lo del cancelEvent() e.e, Aca corregido: addEventHandler ( "onPlayerChat", root, function ( message, type ) local gangtag = getPlayerTeam(source) local teamname = getTeamName(source) if (gangtag == "Clan 1") then local r, g, b = getPlayerNametagColor(source) cancelEvent() outputChatBox ( "[".. teamname .."] " .. getPlayerName(source) .. ": " .. message, getRootElement(), r, g, b, true ) elseif (gangtag == "Clan 2") then local r, g, b = getPlayerNametagColor(source) cancelEvent() outputChatBox ( "[".. teamname .."] " .. getPlayerName(source) .. ": " .. message, getRootElement(), r, g, b, true ) end end)
-
armas = { [38] = true ; [35] = true ; [36] = true ; [37] = true ; [16] = true ; [17] = true ; [18] = true ; [39] = true } function antiweapon ( previousWeaponID, currentWeaponID, thePlayer ) if ( armas[getElementModel ( thePlayer )] ) and ( seat == 0 ) then local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if ( not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Secret" ) ) then cancelEvent ( ) outputChatBox("Estas armas son solo para ~Secret Option~", thePlayer, 0,128,255, true) end end end addEventHandler ( "onPlayerWeaponSwitch", root, antiweapon )
-
Prueba esto y hay vas agregando Server: addEventHandler ( "onPlayerChat", root, function ( message, type ) local gangtag = getPlayerTeam(source) if (gangtag == "Clan 1") then local r, g, b = getPlayerNametagColor(source) outputChatBox ( "[Clan 1] " .. getPlayerName(source) .. ": " .. message, getRootElement(), r, g, b, true ) elseif (gangtag == "Clan 2") then local r, g, b = getPlayerNametagColor(source) outputChatBox ( "[Clan 2] " .. getPlayerName(source) .. ": " .. message, getRootElement(), r, g, b, true ) end end)
-
Que significa este error? : ERROR: Attempt to comparate two boolean values
-
Tenias Muchos errores, Prueba Esto: addCommandHandler("auto", function (thePlayer) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("Admin")) and (isPedInVehicle(thePlayer)) then outputChatBox("Sal de tu auto actual", thePlayer, 0, 250, 0) else local x, y, z = getElementPosition(thePlayer) Object1 = createVehicle(411, x+2, y+2, z)--- ID del auto outputChatBox("Auto creado con Exito!", thePlayer, 0, 250, 0) warpPedIntoVehicle (thePlayer,Object1) end end ) addCommandHandler("destroy", function (thePlayer) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("Admin")) and (isElement(Object1)) then destroyElement(Object1) outputChatBox("Auto Destruido", thePlayer, 0, 0, 255) else outputChatBox("Error, auto inexistente", thePlayer, 250, 0, 0) end end )
-
function infernus(thePlayer) local x, y, z = getElementPosition(thePlayer) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then Object1 = createVeichle(411, x, y, z-1)--- ID del auto outputChatBox("creaste el auto", thePlayer, 0, 250, 0) elseif (isPedInVehicle(thePlayer)) then local vehicle = getPedOccupiedVehicle(thePlayer) attachElements(Object1, vehicle) end end addCommandHandler("auto", infernus) function infernus(thePlayer) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then elseif (isElement(Object1)) then destroyElement(Object1) outputChatBox("destruido", thePlayer, 0, 0, 255) else outputChatBox("destruido", thePlayer, 250, 0, 0) end end addCommandHandler("destroy", infernus)
-
Cada archivo debe tener su txd con su respectivo dff hay solo cargas los DFF osea la estructura se vera en blanco
-
Hay no esta el modelo txd, y el formato es el siguiente: txd = engineLoadTXD ( "TuArchivo.txd" ) engineImportTXD ( txd, 587 ) -- 587 Modelo a remplazar dff = engineLoadDFF ( "TuArchivo.dff", 587) -- 587 Modelo a remplazar engineReplaceModel ( dff, 587 ) -- 587 Modelo a remplazar
-
Para eso debes tener conocimientos Avanzados en Scripting y LUA, Lo que puedes hacer es usar todo por Dimensiones es decir cargar todo en distintas dimensiones
-
Solo era cuestión de remplazar a src y que puse me falto la otra >
-
Primero, Te falto un Corchete local myFont = dxCreateFont("font.ttf" ,12) y Segundo pusistes 'myFont y es solo myFont mapdisplay = dxText:create('Map: none', 2, screenHeight - dxGetFontHeight(0.7, 'bankgothic')/2, false, myFont, 0.7, 'left')
-
Gracias a los dos era que puse scr y era src, Pero al dar refresh me dice: ERROR: Couldn't parse meta file for resource 'DL_Carros' Loading of resource 'DL_Carros' failed Edit: SOLCUIONADO, Gracias Igual
-
Por alguna razón no me quiere funcionar Al iniciarlo me dice: WARNING: Missing 'src' attribute from 'file' node of 'meta.xml' for resource 'DL_Carros', ignoring WARNING: Missing 'src' attribute from 'file' node of 'meta.xml' for resource 'DL_Carros', ignoring WARNING: Missing 'src' attribute from 'file' node of 'meta.xml' for resource 'DL_Carros', ignoring WARNING: Missing 'src' attribute from 'file' node of 'meta.xml' for resource 'DL_Carros', ignoring WARNING: Missing 'src' attribute from 'file' node of 'meta.xml' for resource 'DL_Carros', ignoring WARNING: Missing 'src' attribute from 'file' node of 'meta.xml' for resource 'DL_Carros', ignoring WARNING: Missing 'src' attribute from 'file' node of 'meta.xml' for resource 'DL_Carros', ignoring WARNING: Missing 'src' attribute from 'file' node of 'meta.xml' for resource 'DL_Carros', ignoring WARNING: Missing 'src' attribute from 'file' node of 'meta.xml' for resource 'DL_Carros', ignoring
-
Que al salir de la Zona tengas un godmode por 10 o 5 segundos, que no puedas dispara, y no te saque vida por esos segundos
-
function porNiveles() local Nivel = getElementData(source,"Level") local auto = getElementType(source) == "vehicle" if (Nivel == "3") and (auto == "470") then outputChatBox("Felicidades ya puedes usar la Patriot", source, 255, 0, 0, false) else cancelEvent() end end addEventHandler("onVehicleStartEnter", root, porNiveles)