-
Posts
1,708 -
Joined
-
Last visited
Everything posted by iFoReX
-
Si, he intentado peroo no encuentro la manera de como hacerlo me ayudarian aunque sea con las funciones que debo utilizar c: ?
-
he intentado pero nada me ha funcionado como podria hacerlo ?
-
no uso interiors o mabako services solo house_system, Ok, gracias alexs lo ire a probar enseguida.
-
cuando pongo los scripts no me aparece nada en el chat ni me teletransporta a otra dimension ni me freezea function afk() if source == getElementsByType("player") then if getElementDimension(source) == 0 and not isPedInVehicle(source) then local dimensionAFK = setElementDimension(source,math.random(1,3000)) setElementFrozen(source,true) outputChatBox(getPlayerName(source)..", esta AFK",getRootElement(),255,255,255,true) elseif getElementDimension(source) > 0 and not isPedInVehicle(source) then outputChatBox("ya estas AFK !",source) elseif isPedInVehicle(source) then outputChatBox("estas dentro de un vehiculo !",source) end end end addCommandHandler("afk",afk) function back() if source == getElementsByType("player") then if getElementDimension(source) == 0 and not isPedInVehicle(source) then outputChatBox("no estas AFK !",source) elseif getElementDimension(source) > 0 and not isPedInVehicle(source) then setElementDimension(source,0) setElementFrozen(source,true) outputChatBox(getPlayerName(source)..",esta devuelta",getRootElement(),255,255,255,true) elseif isPedInVehicle(source) then outputChatBox("estas dentro de un Vehiculo !",source) end end end addCommandHandler("back",back)
-
Solid, I want if I press lctrl+m play sound for all doesnt for me.
-
the music doesnt play for all only for me. and 0 errors debugscript code : cl-side addEvent("reproducir",true) addEventHandler("reproducir",root,function() if getKeyState("lctrl") then if not isElement(r1) then r1 = playSound("http://ecrd.com/files/2/tgyb1wnqsjfu2w/J%20King%20&%20Maximan%20Ft%20%C3%91engo%20Flow,%20Arcangel,%20De%20La%20Ghetto,%20Randy,%20Alexis,%20Jamsha%20Y%20Chyno%20Nyno%20-%20Siente%20(Official%20Remix)%20(ECRD.Com).mp3") if r1 then outputChatBox("La Musica esta empezando por"..getPlayerName(getLocalPlayer()),255,255,255,true) elseif isElement(r1) then outputChatBox("La Musica ya esta sonando",getLocalPlayer(),255,255,255,true) end end end end ) bindKey("n","down",function() if getKeyState("lctrl") then if isElement(r1) then destroyElement(r1) outputChatBox("La Musica esta parando por"..getPlayerName(getLocalPlayer()),255,255,255,true) elseif not isElement(r1) then outputChatBox("La Musica ya esta sonando !",getLocalPlayer(),255,255,255,true) end end end ) sv-side addEventHandler("onResourceStart",resourceRoot,function() for index, thePlayer in ipairs ( getElementsByType ( "player" ) ) do bindKey(thePlayer,"m","down",server) end end ) function server() triggerClientEvent("reproducir",getRootElement()) end
-
porque esto no funciona ? no veo el error, me aparece error en la linea 12. ---SkinsByElMota--- addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),function() ----WeskerSkin---- weskerTXD = engineLoadTXD ( "wesker3.txd" ) engineImportTXD ( weskerTXD, 282 ) weskerDFF = engineLoadDFF ( "wesker3.dff", 282 ) engineReplaceModel ( weskerDFF, 282 ) ----BKZSkin---- clanTXD = engineLoadTXD ( "bkz.txd" ) engineImportTXD ( clanTXD, 11 ) clanDFF = engineLoadDFF ( "bkz.dff", 11 ) engineImportDFF ( clanDFF, 11 ) ----Nemesis1---- n1TXD = engineLoadTXD ( "nemesis.txd" ) engineImportTXD ( n1TXD, 284 ) n1DFF = engineLoadDFF ( "nemesis.dff", 284 ) engineImportDFF ( n1DFF, 284 ) end )
-
Muchas gracias solid funciona a la perfeccion
-
como puedo hacer para que en un gridlist aparescan los del grupo acl ? tor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(0.105,0.145,0.7575,0.7933,"Sala de Chat de BKZ Clan",true) GUIEditor_Label[1] = guiCreateLabel(37,37,85,28,"Miembros",false,GUIEditor_Window[1]) GUIEditor_Grid[1] = guiCreateGridList(11,62,121,296,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"Miembros",0.2) GUIEditor_Grid[2] = guiCreateGridList(136,28,461,439,false,GUIEditor_Window[1]) guiGridListAddColumn(GUIEditor_Grid[2],"Mensaje",0.2) GUIEditor_Button[1] = guiCreateButton(12,363,118,35,"Cerrar",false,GUIEditor_Window[1]) guiSetVisible(GUIEditor_Window[1],false) showCursor(false) addEvent("visible:Chat",true) addEventHandler("visible:Chat",root,function() guiSetVisible(GUIEditor_Window[1],true) showCursor(true) end )
-
y como puedo hacer para que los codigos #00ff00 o #00bbff o esos no aparescan y el nombre aparesca con su respectivo color ?
-
funciona pero esto no funciona no me mata ni se escribe nada en el chat function enterZone(thePlayer, matchingDimension) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "bkz" ) ) and getElementType(thePlayer) == "player" then outputChatBox("bienvenido a la base BKZ "..getPlayerName(thePlayer),thePlayer) elseif not isObjectInACLGroup ("user."..accName, aclGetGroup ( "bkz" ) ) and getElementType(thePlayer) == "player" then killPed(thePlayer) end end addEventHandler( "onColShapeHit", radarC[1], enterZone )
-
ahora aparece bad argument 1 getElementType got nil ----BKZBaseByElMota(Scripts)---- puerta = {} radar = {} radarC = {} marker = {} puerta[1] = createObject(980,-2589.69921875,1352.3994140625,8.8000001907349,0,0,224.74731445313) puerta[2] = createObject(980,-2811.8000488281,1490.6999511719,2.7000000476837,0,0,270) puerta[3] = createObject(971,-2803.7998046875,1378,3.4000000953674) radar[1] = createRadarArea(-2816.13550, 1390,40, -70, 0, 0, 0, 255) radarC[1] = createColCuboid ( -2816.13550, 1390, 1.1, 40, -70, 60 ) marker[1] = createMarker( -2803.85791, 1376.25159, 0, "cylinder", 3, 255,0,0,255) addCommandHandler("abrirbkz1",function(thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "bkz" ) ) then local abrir = moveObject(puerta[1],5000,-2589.69921875,1352.3994140625,17) end end ) addCommandHandler("cerrarbkz1",function(thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "bkz" ) ) then local cerrar = moveObject(puerta[1],5000,-2589.69921875,1352.3994140625,8.8000001907349) end end ) addCommandHandler("abrirbkz2",function(thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "bkz" ) ) then local abrir = moveObject(puerta[2],5000,-2811.8000488281,1490.6999511719,9) end end ) addCommandHandler("cerrarbkz2",function(thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "bkz" ) ) then local cerrar = moveObject(puerta[2],5000,-2811.8000488281,1490.6999511719,2.7000000476837) end end ) function enterZone(thePlayer, matchingDimension) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "bkz" ) ) and getElementType(thePlayer) == "Player" then outputChatBox("bienvenido a la base BKZ "..getPlayerName(thePlayer),thePlayer) elseif not isObjectInACLGroup ("user."..accName, aclGetGroup ( "bkz" ) ) and getElementType(thePlayer) == "Player" then killPed(thePlayer) end end addEventHandler( "onColShapeHit", radarC[1], enterZone ) function markerHit(thePlayer, matchingDimension) if source == marker[1] then local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "bkz" ) ) and getElementType(hitElement) == "Player" then moveObject(puerta[3],5000,-2812.19921875,1490.69921875,12) end end end addEventHandler( "onMarkerHit", root, markerHit ) function markerLeave(matchingDimension) if source == marker[1] then moveObject(puerta[3],5000,-2812.19921875,1490.69921875,6) end end addEventHandler( "onMarkerLeave", root, markerLeave )
-
thePlayer para el isObjectinAclGroup y el hit element para comprobar que el que lo tope sea una persona
-
que esta mal ? me dice bad argument 1 getElementType got boolean ----BKZBaseByElMota(Scripts)---- puerta = {} radar = {} radarC = {} marker = {} puerta[1] = createObject(980,-2589.69921875,1352.3994140625,8.8000001907349,0,0,224.74731445313) puerta[2] = createObject(980,-2811.8000488281,1490.6999511719,2.7000000476837,0,0,270) puerta[3] = createObject(971,-2803.7998046875,1378,3.4000000953674) radar[1] = createRadarArea(-2816.13550, 1390,40, -70, 0, 0, 0, 255) radarC[1] = createColCuboid ( -2816.13550, 1390, 1.1, 40, -70, 60 ) marker[1] = createMarker( -2803.85791, 1376.25159, 0, "cylinder", 3, 255,0,0,255) addCommandHandler("abrirbkz1",function(thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "bkz" ) ) then local abrir = moveObject(puerta[1],5000,-2589.69921875,1352.3994140625,17) end end ) addCommandHandler("cerrarbkz1",function(thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "bkz" ) ) then local cerrar = moveObject(puerta[1],5000,-2589.69921875,1352.3994140625,8.8000001907349) end end ) addCommandHandler("abrirbkz2",function(thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "bkz" ) ) then local abrir = moveObject(puerta[2],5000,-2811.8000488281,1490.6999511719,9) end end ) addCommandHandler("cerrarbkz2",function(thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "bkz" ) ) then local cerrar = moveObject(puerta[2],5000,-2811.8000488281,1490.6999511719,2.7000000476837) end end ) function enterZone(thePlayer, hitElement, matchingDimension) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "bkz" ) ) and getElementType(hitElement) == "Player" then outputChatBox("bienvenido a la base BKZ "..getPlayerName(hitElement),hitElement) elseif not isObjectInACLGroup ("user."..accName, aclGetGroup ( "bkz" ) ) and getElementType(hitElement) == "Player" then killPed(hitElement) end end addEventHandler( "onColShapeHit", radarC[1], enterZone ) function markerHit(thePlayer, hitElement, matchingDimension) if source == marker[1] then local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "bkz" ) ) and getElementType(hitElement) == "Player" then moveObject(puerta[3],5000,-2812.19921875,1490.69921875,12) end end end addEventHandler( "onMarkerHit", root, markerHit ) function markerLeave(matchingDimension) if source == marker[1] then moveObject(puerta[3],5000,-2812.19921875,1490.69921875,6) end end addEventHandler( "onMarkerLeave", root, markerLeave )
-
para guardar los teams cuando salen, y comandos para unir players al team, y que cuando entre un player que no es del team al colcuboid muera
-
no puedo probar este codigo me podrian decir si esta bien o esta mal ? area = {} areaC = {} area[1] = createRadarArea() areaC[1] = createColCuboid() addEventHandler("onPlayerQuit", root, function() local theTeam = getPlayerTeam(source) local team = getTeamFromName(theTeam) if team then setAccountData(source,"team",team) end end ) addEventHandler("onPlayerJoin",root,function() local team = getAccountData(source,"team") if team then setPlayerTeam(source,team) end end ) addCommandHandler("createteam",function(theteam) if theteam then createTeam(theteam) end end ) addCommandHandler("unir",function(player,team) if player and team then local theteam = getTeamFromName(team) setPlayerTeam(player,theteam) end end ) addEventHandler("onColShapeHit",root,function(thePlayer,matchingDimension) if source == areaC[1] then if getElementType ( thePlayer ) == "player" then if ( getPlayerTeam ( thePlayer ) and getTeamName ( getPlayerTeam ( thePlayer ) ) ~= "theTeam" ) then killPed(thePlayer) end end end end )
-
I have a problem in line 69, near day here the code : GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Edit = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(0.32,0.2817,0.3625,0.28,"Ventana de Llamados",true) GUIEditor_Edit[1] = guiCreateEdit(40,69,201,36,"",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(80,113,115,39,"Llamar !",false,GUIEditor_Window[1]) GUIEditor_Window[2] = guiCreateWindow(0.1375,0.14,0.8012,0.775,"Historial de la Llamada",true) GUIEditor_Grid[1] = guiCreateGridList(9,30,483,364,false,GUIEditor_Window[2]) col = guiGridListAddColumn(GUIEditor_Grid[1],"Mensaje",0.2) GUIEditor_Button[2] = guiCreateButton(514,82,61,38,"Enviar !",false,GUIEditor_Window[2]) GUIEditor_Edit[2] = guiCreateEdit(10,403,481,41,"",false,GUIEditor_Window[2]) GUIEditor_Button[3] = guiCreateButton(512,136,61,38,"Cancelar",false,GUIEditor_Window[2]) guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],false) showCursor(false) bindKey("L","down",function() guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) guiSetVisible(GUIEditor_Window[2],false) showCursor(guiGetVisible(GUIEditor_Window[1])) end ) function addPlayerNumber(player,numeroID) local elnumeroXML = xmlCreateFile("numero","numero") local elnumeroChild = xmlCreateChild(elnumeroXML, "numeroID") xmlNodeSetAttribute(elnumeroChild, "numeroNode", numeroID) local saveXML = xmlSaveFile(elnumeroXML) if saveXML and player ~= nil then outputChatBox("numero creado correctamente",player) end end function findPlayerNumber(player,numeroE) local elnumeroXML = xmlLoadFile("numero") local childXML = xmlFindChild(elnumeroXML,"numeroID",0) local getNumero = xmlNodeGetAttribute(childXML,numeroE) if getNumero then outputChatBox("numero encontrado con exito",player) end end addCommandHandler("crearnumero",root,function(cmd, numero) if ( numero ) then addPlayerNumber(getLocalPlayer(),numero) end end ) addEventHandler("onClientGUIClick",root,function() if source == GUIEditor_Button[1] then local check = findPlayerNumber(getLocalPlayer(),guiGetText(GUIEditor_Edit[1])) if check ~= nil or check ~= '' then guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],true) elseif check == nil then outputChatBox("numero no conocido",getLocalPlayer()) end elseif source == GUIEditor_Button[2] then local row = guiGridListAddRow(GUIEditor_Grid[1]) local time = getRealTime() local day = time.weekday local month = time.month local year = time.year guiGridListSetItemText(GUIEditor_Grid[1],row,col,""day.."/"..month.."/"..year..", "..getPlayerName( getLocalPlayer() ).." : "..guiGetText(GUIEditor_Edit[2]).."",false,false) end end )
-
Porque pones esto Mr.Domo ( -.- ) ?
-
mmm Ok but I want it : GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Edit = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(0.32,0.2817,0.3625,0.28,"Ventana de Llamados",true) GUIEditor_Edit[1] = guiCreateEdit(40,69,201,36,"",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(80,113,115,39,"Llamar !",false,GUIEditor_Window[1]) GUIEditor_Window[2] = guiCreateWindow(0.1375,0.14,0.8012,0.775,"Historial de la Llamada",true) GUIEditor_Grid[1] = guiCreateGridList(9,30,483,364,false,GUIEditor_Window[2]) guiGridListAddColumn(GUIEditor_Grid[1],"Mensaje",0.2) GUIEditor_Button[2] = guiCreateButton(514,82,61,38,"Enviar !",false,GUIEditor_Window[2]) GUIEditor_Edit[2] = guiCreateEdit(10,403,481,41,"",false,GUIEditor_Window[2]) GUIEditor_Button[3] = guiCreateButton(512,136,61,38,"Cancelar",false,GUIEditor_Window[2]) guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],false) showCursor(false) bindKey("L","down",function() guiSetVisible( Im doing the Bindkey, I want if I put the number of my friend, the GUI2 open and I with her can see it messages
-
For example I with a friend can see a window PRIVATE
-
how to make a GUI for that only can see 2 players ?
-
Ademas Mr.Domo eso no funcionaria faltan los strings
-
3rokul, te recomiendo hacerlo en account data, ya que en mysql hay que guardar, updatear, obtener, seleccionar y agregarlos como argumentos
-
Mr.Domo estan bien los ends no tienen nada que ver con el error del script
-
Mr.Domo a eso le falta el string, alexs y si le cambias el nombre a la cancion ?
