Jump to content

BorderLine

Members
  • Posts

    1,027
  • Joined

  • Last visited

Everything posted by BorderLine

  1. add this line in your script function hideold() showPlayerHudComponent("armour",false) showPlayerHudComponent("health",false) showPlayerHudComponent("clock",false) showPlayerHudComponent("money",false) showPlayerHudComponent("weapon",false) showPlayerHudComponent("ammo",false) showPlayerHudComponent("wanted",false) end setTimer(hideold,5000,0)
  2. aqui va otro, sin ofender creenzias religiosas.. es un poco para los chilenos Esta jesus con sus disipulos y en eso llama ajose y le dise. "jose jose, besame los pies" jose va y le besa los pies despues a los minutos dice. "maria magdalena, vesame las benas" maria magdalena va y le besa las venase. Despues jesus dise "federico... federico porq te arrancas??" Bueno, en breve resumen, decia que era para chilenos porq federico penzo que le diria que le besara el pico en chile la palabra pico se le apropia al aparato reproductor masculino.. osea pico= pene Respetos y saludos
  3. jajajajajajajajaj ke weeon jajajaja bueno , me gusto
  4. iva un chileno, un peruano y un argentino en un avion ( sin ofender las nacionalidades) y en eso el avion perdio una turbina y calleron a una isla paradisiaka.. y los unicos sobrevivientes eran el chileno, argentino y peruano... cuando llegarn la orilla estos 3 individuos empezaron a caminar por la selva de la isla.. cuando derrepente salen unos hombres de unas tribus, y los toman prisionero y se llevan a los 3.. los llevaron a la tribu donde sale el shaman.. y les dise.. ya weonsitos, ustedes estan jodiendo aqui, si se quieren salvar, metanse en la selva y traigan 10 frutas.. las que sean.. si lo hacen, les are otra prueba, si pasan esas pruebas, se pueden ir a sus casas.. y parten los 3 a buscar frutas... llega el argentino con 10 manzanas, y de los primeros.. y el shaman le dise.. ya ahora la 2da prueba es meterte las 10 manzanas por el culo, si ases algun gesto o te ries te matamos.. y el argentino empezo a meterse las manzanas por el culo, cuando iva en la 4ta.. iso un gemido de dolor.. kago! lo mataron.. al rato llega el chileno con 10 ceresas, y le dise el shaman, ya wn, ahora tienes ke metertelas en el culo y sin aser niun gesto, y empezo el chileno, iva como una bala cuando iva en la novena cereza, se cago de la risa.. y el shaman dise, yaaa, se rio, matenlo.. y murio ps.. y cuando iva subiendo al cielo el chileno, en el camino se encuentra con el argentino, y el argentino le dice, che, porq te reiste?' ivas bien, pudiste averte salvado .. y el chileno cagado de la risa le dise.. es ke estaba metiendomelas en el culo y derrepente entremedio de las hojas y ramas, veo salir al peruano que venia con 10 piñas..!! jajajaja perdon si es muy largo, pero era uno de los pocos que recuerdo
  5. este es un ejemplo.. nada mas modificales las cordenadas server side local puerta = createObject (2634,1.0180234909058,-291.06182861328,5.5739164352417,0,0,180) -- con esto creas la puerta cambiando la ID del objeto que quieras crear, en este caso es 2634 y editales las cordenadas x,y,z local marker = createMarker (1.0180234909058,-291.06182861328,5.5739164352417, 'cylinder', 2, 0, 0, 255, 0) -- esto crea el marcador en la misma puerta para verificiar al tocarlo si el jugador es administrador o no, puedes ponerle mas alpha para ke puedas ver el marcador, aqui esta en 0 para que no se vea addEventHandler ("onMarkerHit",marker, function (hitPlayer) local account = getPlayerAccount(hitPlayer) if isObjectInACLGroup( 'user.'..getAccountName( account ), aclGetGroup( 'Admin' ) ) then moveObject (door,2000,1.0180234909058,-291.06182861328,1.5739164352417) -- Aqui pones las coredenadas de hacia donde quieres que se mueva la puerta y cambias el tiempo que demorara en moverse la puerta, en este caso ai 2000, que son 2 segundos else outputChatBox ("Acceso denegado!",hitPlayer) end end) addEventHandler ("onMarkerLeave",marker, function () moveObject (door,2000,1.0180234909058,-291.06182861328,5.5739164352417) -- y la ultima funcion que movera la puerta a su lugar inicial cuando el jugador deje el marcador, pones las cordenadas de la pueta donde fue creada asi vuelve a su posicion inicial y modificas el tiempo que demorara la puerta nuevamente, que son 2 segundos de nuevo end) Espero que te sirva
  6. edit: thanks man. work, but i changed to client side and change onClientHitMarker thx
  7. Hi everyone I have a problem i dont know what is the problem. this is the code local puerta = createObject (10828,1697.235,-738.492,60.004,0,0,170) local exit = createMarker (1697.96,-738.53,60.21, 'cylinder', 30, 0, 0, 255, 0) addEventHandler ("onMarkerHit",exit, function (hitPlayer) local playerHealth = getElementHealth ( getLocalPlayer() ) if playerHealth < 99 then outputChatBox ("Infeccion no detectada. Acceso Concedido",hitPlayer) moveObject (puerta,1500,1697.235,-738.492,75.004) else outputChatBox ("Infeccion detectada. Acceso Denegado!",hitPlayer) end end) Dont open the door And debugscript 3 show this error exitrc_s.lua:6:attepmt to call global 'getLocalPlayer' (a nill value) I dont know how fix it. Im searching in mta wiki but i found nothing. Thanks very much
  8. Una pregunta referente al tema, en vez de setpedonfire, se puede cambiar para que anden sin cabeza? no recuerdo como era la funcion. pero en el caso, seria lo mismo? nada mas cambiar el setpedonfire?
  9. Good news. With regard to complaints or opinions thing you think to do is complain. These guys are working on this with their free time. Should be thanked for creating an application to play for you and thousands of other players. You think that they are aware of these errors and do not think it right to mention it. And what he says is true @ Arran, this is a forum for news, not reporting and suggestions. Sorry for my English, I am using a translator Keep it real guys
  10. jajajaja es webeo.. no sabia ke poner, era boss, tenia boss, pero como me sali puse esa wea xDD
  11. se algunas cosas, pero tambien hay cosas tan simples que aun nose. bueno en fin todo queda para la experiencia. saludos
  12. Solo mencione que era un buen punto a saber, en caso que me pasaran algun script y tubiera eso. Y aunque fuese asi no deberias reirte, todos aprenden alguna vez y nadie nace sabiendo todo
  13. exelente.. es una buena informacion eso de los temporizadores. Muchas gracias solid, una vez mas .. lo checare
  14. Al igual que todos tu pc tiene un consumo fisicoo. Si trabaja regular no ocupas tanto. Si le exedes en aplicaciones consume mas y se pone lento Y no man, yo contrate 128 players y es lo que puse. Ademas la administracion del host lleva un control de eso
  15. Hola buenas Bueno me dirijo a ustedes con una pregunta, o mas un consejo que puedan darme o recomendarme Resulta que yo contrate un host para mi servidor y me estan llamando la atencion por un alto consumo del servidor. Me refiero que si el consumo maximo es 40, yo consumo 70 u 80. En ocaciones el server tiene 60 jugadores y hay un consumo de 30 o 40. Pero asi como tambien en ocaciones hay 20 jugadores y el consumo es de 60, o mas Esto lo ocacionara algun jugador que tenga demaciado lag? En fin Se que debo sacar muchos scripts visuales y uno que ootro skin.. Pero bueno, si algien tiene algun conozimiento respecto a esto me agradaria que me giara Muchas gracias
  16. BorderLine

    Nametag

    Hi forum. Im try to edit this script made by one guy from comunity he export nametag from race to peds this is the code g_Root = getRootElement() g_ResRoot = getResourceRootElement(getThisResource()) g_Players = getElementsByType('player') g_Me = getLocalPlayer() nametag = {} local nametags = {} local g_screenX,g_screenY = guiGetScreenSize() local bHideNametags = false local NAMETAG_SCALE = 0.3 --Overall adjustment of the nametag, use this to resize but constrain proportions local NAMETAG_ALPHA_DISTANCE = 50 --Distance to start fading out local NAMETAG_DISTANCE = 120 --Distance until we're gone local NAMETAG_ALPHA = 120 --The overall alpha level of the nametag --The following arent actual pixel measurements, they're just proportional constraints local NAMETAG_TEXT_BAR_SPACE = 2 local NAMETAG_WIDTH = 50 local NAMETAG_HEIGHT = 5 local NAMETAG_TEXTSIZE = 0.3 local NAMETAG_OUTLINE_THICKNESS = 1.2 -- local NAMETAG_ALPHA_DIFF = NAMETAG_DISTANCE - NAMETAG_ALPHA_DISTANCE NAMETAG_SCALE = 1/NAMETAG_SCALE * 800 / g_screenY -- Ensure the name tag doesn't get too big local maxScaleCurve = { {0, 0}, {3, 3}, {13, 5} } -- Ensure the text doesn't get too small/unreadable local textScaleCurve = { {0, 0.8}, {0.8, 1.2}, {99, 99} } -- Make the text a bit brighter and fade more gradually local textAlphaCurve = { {0, 0}, {25, 100}, {120, 190}, {255, 190} } function nametag.create ( player ) nametags[player] = true end function nametag.destroy ( player ) nametags[player] = nil end addEventHandler ( "onClientRender", g_Root, function() -- Hideous quick fix -- for i,player in ipairs(g_Players) do if isElement(player) then if player ~= g_Me then setPlayerNametagShowing ( player, false ) if not nametags[player] then nametag.create ( player ) end end end end if bHideNametags then return end local x,y,z = getCameraMatrix() for player in pairs(nametags) do while true do if not isElement(player) then break end if getElementDimension(player) ~= getElementDimension(g_Me) then break end local px,py,pz = getElementPosition ( player ) if processLineOfSight(x, y, z, px, py, pz, true, false, false, true, false, true) then break end local pdistance = getDistanceBetweenPoints3D ( x,y,z,px,py,pz ) if pdistance <= NAMETAG_DISTANCE then --Get screenposition local sx,sy = getScreenFromWorldPosition ( px, py, pz+0.95, 0.06 ) if not sx or not sy then break end --Calculate our components local scale = 1/(NAMETAG_SCALE * (pdistance / NAMETAG_DISTANCE)) local alpha = ((pdistance - NAMETAG_ALPHA_DISTANCE) / NAMETAG_ALPHA_DIFF) alpha = (alpha < 0) and NAMETAG_ALPHA or NAMETAG_ALPHA-(alpha*NAMETAG_ALPHA) scale = math.evalCurve(maxScaleCurve,scale) local textscale = math.evalCurve(textScaleCurve,scale) local textalpha = math.evalCurve(textAlphaCurve,alpha) local outlineThickness = NAMETAG_OUTLINE_THICKNESS*(scale) --Draw our text local r,g,b = getPlayerNametagColor(player) local offset = (scale) * NAMETAG_TEXT_BAR_SPACE/2 dxDrawText ( getPlayerName(player), sx, sy - offset, sx, sy - offset, tocolor(0,0,0,255), textscale*NAMETAG_TEXTSIZE, "pricedown", "center", "bottom", false, false, false ) dxDrawText ( getPlayerName(player), sx, sy - offset, sx, sy - offset, tocolor(r,g,b,textalpha), textscale*NAMETAG_TEXTSIZE, "pricedown", "center", "bottom", false, false, false ) local drawX = sx - NAMETAG_WIDTH*scale/2 drawY = sy + offset local width,height = NAMETAG_WIDTH*scale, NAMETAG_HEIGHT*scale dxDrawRectangle ( drawX, drawY, width, height, tocolor(0,0,0,alpha) ) --Next the inner background local health local p local r,g health = getElementHealth ( player ) health = math.max(health, 0)/100 p = -510*(health^2) r,g = math.max(math.min(p + 255*health + 255, 255), 0), math.max(math.min(p + 765*health, 255), 0) if health > 1.0 then health = 1.0 end dxDrawRectangle ( drawX + outlineThickness, drawY + outlineThickness, width - outlineThickness*2, height - outlineThickness*2, tocolor(r,g,0,0.4*alpha) ) --Finally, the actual health dxDrawRectangle ( drawX + outlineThickness, drawY + outlineThickness, health*(width - outlineThickness*2), height - outlineThickness*2, tocolor(r,g,0,alpha) ) end break end end end ) ---------------THE FOLLOWING IS THE MANAGEMENT OF NAMETAGS----------------- addEventHandler('onClientResourceStart', g_ResRoot, function() for i,player in ipairs(getElementsByType"player") do if player ~= g_Me then nametag.create ( player ) end end end ) addEventHandler ( "onClientPlayerJoin", g_Root, function() if source == g_Me then return end setPlayerNametagShowing ( source, false ) nametag.create ( source ) end ) addEventHandler ( "onClientPlayerQuit", g_Root, function() nametag.destroy ( source ) end ) -- Math functions function math.lerp(from,to,alpha) return from + (to-from) * alpha end -- curve is { {x1, y1}, {x2, y2}, {x3, y3} ... } function math.evalCurve( curve, input ) -- First value if input[1][1] then return curve[1][2] end -- Interp value for idx=2,#curve do if input[idx][1] then local x1 = curve[idx-1][1] local y1 = curve[idx-1][2] local x2 = curve[idx][1] local y2 = curve[idx][2] -- Find pos between input points local alpha = (input - x1)/(x2 - x1); -- Map to output points return math.lerp(y1,y2,alpha) end end -- Last value return curve[#curve][2] end but i wanna show colores Hex in nametag in the line 84 and 85 im change for this dxDrawColorText ( getPlayerName(player), sx, sy - offset, sx, sy - offset, tocolor(0,0,0,255), textscale*NAMETAG_TEXTSIZE, "pricedown", "center", "bottom", false, false, false ) dxDrawColorText ( getPlayerName(player), sx, sy - offset, sx, sy - offset, tocolor(r,g,b,textalpha), textscale*NAMETAG_TEXTSIZE, "pricedown", "center", "bottom", false, false, false ) and when i active, the name dessapear. Im try much think but i dont know if i need other fuction or something If someone know thanks
  17. aaaaaa you are the fu... amazing
  18. Hi forum well i have this question for example i have private cars with this code vehicle1 = createVehicle ( 411, -61.252086639404, -303.81872558594, 5.2296872138977, 0, 0, 90 ) setVehicleHeadLightColor (vehicle1, 0, 200, 255) setVehicleColor ( vehicle1, 0, 0, 0, 0 ) addVehicleUpgrade (vehicle1, 1079) addVehicleUpgrade (vehicle1, 1010) only i can put gta colors, with id but now in mta 1.1 have a new sistem with RGB/HEX Colours can be posible make this? make a car with script and put rgb/hex colour?
  19. hey man but in the settimer must put the name of fuction to refreshing the money setTimer (drawSpectators, 1000, 0 ) i dont know if i wrong but try
  20. just im asking if someone know it thaanks
  21. you knw the code? or somehing
  22. Hi forum Well i have a question, someone know what is the effect of image. I dont know if someone has played basemode. When join show the tittle image with a effect. i dont know if im explain is a fuction? or i need draw image with diferents positions showing for 0.2 ms and deleting after to show Thanks so much
  23. BorderLine

    help plz

    try reinstaling admin resource and deleting the old script from client and your server
×
×
  • Create New...