Search the Community

Showing results for tags 'help'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
  • Archive
  • Private Bugtracker

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Gang


Location


Occupation


Interests

Found 574 results

  1. local screenW, screenH = guiGetScreenSize() local GUIEditor = { button = {}, window = {}, edit = {} } GUIEditor.window[1] = guiCreateWindow(0.35, 0.40, 0.32, 0.12, "Event hírdető panel", true) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(0.04, 0.68, 0.78, 0.23, "Beírt szöveg kiírása", true, GUIEditor.window[1]) GUIEditor.edit[1] = guiCreateEdit(0.03, 0.21, 0.93, 0.38, "", true, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(0.84, 0.68, 0.14, 0.23, "Bezár", true, GUIEditor.window[1]) guiSetVisible(GUIEditor.window[1], false) guiSetInputMode("no_binds_when_editing") function showGUI() guiSetVisible( GUIEditor.window[1], true ) showCursor( true ) end addEvent( "showguii", true ) addEventHandler( "showguii", localPlayer, showGUI ) addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[2] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end ) addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[1] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end ) addEventHandler("onClientGUIClick", GUIEditor.button[1], function ( ) text1 = guiGetText ( GUIEditor.edit[1] ) --text2 = guiGetText ( valasz1 ) --text3 = guiGetText ( valasz2 ) if text1 ~= "" then triggerServerEvent( "server",localPlayer,text1 ) setTimer ( function( ) text1 = nil end,5000, 1 ) end end,false ) addEventHandler ( 'onClientRender',root, function ( ) dxDrawText(text1, (screenW * 0.2924) + 1, (screenH * 0.3778) + 1, (screenW * 0.7014) + 1, (screenH * 0.5400) + 1, tocolor(0, 0, 0, 255), 2.50, "default-bold", "left", "top", false, true, false, false, false) dxDrawText(text1, screenW * 0.2924, screenH * 0.3778, screenW * 0.7014, screenH * 0.5400, tocolor(0, 186, 255, 255), 2.50, "default-bold", "left", "top", false, true, false, false, false) end ) the dx text why not show on all players screen? o-O
  2. Hello Guys, I just want to write a camera system like in GTA 5. (The Camera is closer to the player, etc) So i can aim with any weapon, but not rotating the ped. Cannot look around, cannot look up, or down when aiming. Any Ideas? local camera = {} local currentCameraView = 1 local cameraView = {} cameraView[1] = 1.2 --SimpleControl cameraView[2] = 6.5 --InVehicle camera.dist = cameraView[currentCameraView] camera.speed = 4 camera.x = math.rad(60) camera.y = math.rad(60) camera.z = math.rad(15) camera.maxZ = math.rad(89) camera.minZ = math.rad(-45) addEventHandler("onClientPreRender", getRootElement(), function() x, y, z = getElementPosition(localPlayer) z = z + 0.2 local camDist = camera.dist local cosZ = math.cos(camera.z) camX = x + math.cos(camera.x)*camDist*cosZ camY = y + math.sin(camera.y)*camDist*cosZ camZ = z + math.sin(camera.z)*camDist setCameraMatrix(camX, camY, camZ + 0.2, x + 0.1, y + 0.1, z + 0.2) end) addEventHandler("onClientCursorMove", getRootElement(), function(curX, curY, absX, absY) local diffX = curX - 0.5 local diffY = curY - 0.5 local camX = camera.x - diffX*camera.speed local camY = camera.y - diffX*camera.speed local camZ = camera.z + (diffY*camera.speed)/math.pi if(camZ > camera.maxZ)then camZ = camera.maxZ end if(camZ < camera.minZ)then camZ = camera.minZ end camera.x = camX camera.y = camY camera.z = camZ end) function isItInVeh() isitin = isPedInVehicle(localPlayer) if isitin == true then currentCameraView = 2 else currentCameraView = 1 end camera.dist = cameraView[currentCameraView] end addEventHandler("onClientPreRender", getRootElement(), isItInVeh) bindKey("mouse_wheel_down", "down", function() cameraView[1] = cameraView[1] + 0.1 if(cameraView[1] >= 2.5)then cameraView[1] = 2.5 end camera.dist = cameraView[currentCameraView] end) bindKey("mouse_wheel_up", "down", function() cameraView[1] = cameraView[1] - 0.1 if(cameraView[1] <= 1.2)then cameraView[1] = 1.2 end camera.dist = cameraView[currentCameraView] end) bindKey("mouse_wheel_down", "down", function() cameraView[2] = cameraView[2] + 0.4 if(cameraView[2] >= 12.5)then cameraView[2] = 12.5 end camera.dist = cameraView[currentCameraView] end) bindKey("mouse_wheel_up", "down", function() cameraView[2] = cameraView[2] - 0.4 if(cameraView[2] <= 6)then cameraView[2] = 6 end camera.dist = cameraView[currentCameraView] end) addEventHandler("onClientRender", getRootElement(), function() if isCursorShowing() then camera.speed = 0 elseif isChatBoxInputActive() then camera.speed = 0 else camera.speed = 4 end end) -----------------------------The Aiming Magic bindKey("aim_weapon", "down", function() outputChatBox("Aiming") end) bindKey("aim_weapon", "up", function() outputChatBox("Not Aiming") end)
  3. Who recommended me a script for Halloween RPG server? Done plz
  4. Hello guys, i recently setuped up my own dayz server, but i need to add like more vehicles i have some vehicles.lua and there are cars adn ther x,y,z i guess its spawn how can i add more? or can some1 just give me some pre-scripted vehicles.lua so i dont have to type it or something? i want more cars on my server basicaly , which players can find and get
  5. Good come to know if there is a script or a function that allows me to give more speed to the cars of a team, any car using the user of that team have for example a 15% extra speed as the damage of weapons .
  6. Hello there. I created a theme some weeks ago, and the problem is that there is a white rectangle at the bottom of the screen. After some searching, I found out that a file called mta_filler was responsible for this. As you expected, I removed the file, but the rectangle was still there. Is there a way to remove this rectangle? Thanks.
  7. So hello. I started up my new server on Dayz i have mod & register/login + admin panel and global chat. But i dont know where to find models for zombies (since i have normal skins from GTA:SA) and how to change them, can you link me and tell me where to replace it? please? :))) + if you can link me even for cars (and i need to spawn somehow cars, like so people can repair it there is no car) and some script for like when i have the name i want before name some title like [VIP]USERNAME + i need some instructions for it. THANKS.
  8. So hello. I started up my new server on Dayz i have mod & register/login + admin panel and global chat. But i dont know where to find models for zombies (since i have normal skins from GTA:SA) and how to change them, can you link me and tell me where to replace it? please? :))) + if you can link me even for cars and some script for like when i have the name i want before name some title like [VIP]USERNAME + i need some instructions for it. THANKS.
  9. Hello, I am scripting a panel that will set people into diffrent dimensions. But i need the code for chaning the Dimension Only, Please Every Answer would be to help. function teleportPlayer() if(source == GUIEditor.button[1]) then local teleportX, teleportY, teleportZ = 1210.48621, 2358.32373, 8.01253 setElementPosition(getLocalPlayer(), teleportX, teleportY, teleportZ) outputChatBox("You Have Been Set To The Arabian Server") end end addEventHandler("onClientGUIClick", root, teleportPlayer) ------------------------- function teleportPlayer() if(source == GUIEditor.button[2]) then local teleportX, teleportY, teleportZ = 1923.0625, -1760.005859375, 13.546875 setElementPosition(getLocalPlayer(), teleportX, teleportY, teleportZ) outputChatBox("You Have Been Set To The English Server") end end addEventHandler("onClientGUIClick", root, teleportPlayer)
  10. I've been searching for a MySQL tips and noticed there is no such topics on this forum. So let's fix this little problem. I want to know more about optimising MySQL queries and how to interract with MySQL correctly, I am newbie in that. I learned that putting queries in the loop it's too performance-expensive, wrong, and very big chance it'll freeze your server for uncertain time. So if I want to get information from DB for a many players, better to make it using only 1 query. Example: "SELECT * FROM race_stats WHERE playerID IN(??)" Where "??" = table with logged in players. But, what if I want to update information for a many players at the same time? How such query should look like? For 1 player it looks like this: "UPDATE race_stats SET id1 = id1 + ?, id2 = id2 + ?, id3 = id3 + ?, id4 = id4 + ?, id5 = id5 + ? WHERE playerID = ?" But how to make the same for all players? Put query in the loop will be too performance-expensive I guess and will create laggs. P.S. Maybe for such thing as player stats better to learn MySQL procuderes and create procedure for this, I am newbie, just asking. Don't even know what is procedures exactly, just heard about it.
  11. Hello, I have a small problem with models that are on the ground old one works greate but it was old GTA SA models so I have to chang it to new one becouse of my server all works fine but when I for example drop some item to ground or make fireplace all models are small and I need it like old ones. What is the problem?! Please help me I try everithing and no changes. PS: I'm sorry if there are some mistakes but English is not so good. If you do not understand something just ask I'll try to explain.
  12. Hola soy nuevo en esta comunidad, espero que me puedan ayudar, bueno lo que quiero hacer es un auto respawn de autos que diga en el chat vehiculos restaurados en 10 segundos y todos los vehiculos han sido restaurados algo haci pues. Hi I am new to this community, I hope you can help me, well I want to do is a car auto respawn read in the car chat restored in 10 seconds and all vehicles have been restored as something. primero este script no es mio lo encontre en mta resources y queria modificarlo y eso pero no me funciona local rElement = getRootElement() function respawnVehicles(player, cmd, seconds) if tonumber(seconds) then if not hasObjectPermissionTo(player, "function.banPlayer") then outputChatBox("This command is only executeable for administrators", player, 255, 0, 0, false) return end outputChatBox("** All unoccupied vehicles will be respawned in " .. seconds .. " seconds **", rElement, 220, 220, 0, false) setTimer(function (player) local vehicles = getElementsByType ( "vehicle" ) outputChatBox("** All unoccupied vehicles respawned **", rElement, 220, 220, 0, false) outputDebugString(getPlayerName(player) .. " respawned vehicles.") for k, vehicle in ipairs ( vehicles ) do if isEmpty( vehicle ) then respawnVehicle ( vehicle ) end end end, seconds * 1000, 1, player) else outputChatBox("Syntax: /respawn ", player, 220, 220, 0, false) end end addCommandHandler("respawn",respawnVehicles) function isEmpty( vehicle ) local passengers = getVehicleMaxPassengers( vehicle ) if type( passengers ) == 'number' then for seat = 0, passengers do if getVehicleOccupant( vehicle, seat ) then return false end end end return true end
  13. Hola chicos, como están.. hoy publico por aquí para saber como solucionar el siguiente error ya que hace muchísimo spam cada vez que se usa el comando http://prntscr.com/cmabmb Espero sus respuestas por favor
  14. i need someone to explain me how does interpolateBetween work and how can it be applied and on what please and thank you. i want to make a script that shows credits like in the movies where credits go from the bottom to the top crossing the screen. like that or can someone tell me if its possible PLEASE AND THANK YOU image
  15. Hola, como están.. publico por aca para saber como arreglar el siguiente problema local tiempo = 3500 if getTickCount() - tiempo > 10000 then tiempo = getTickCount() setTimer(function() return outputChatBox ( "Espera 10 segundos para volver a utilizar esto!", playerSource, 225, 0, 0 ) Eso no deja que hagas spam de un comando, osea no puedes volver a usar el comando por 10 segundos, pero por ejemplo si equis persona pone el comando al mismo tiempo que yo no puede y entonces el tiene que esperar que pasen mis 10 segundos, como hago para que eso sea individual? y que solo el usuario que lo ponga deba esperar 10 segundos? no todos los usuarios , espero sus respuesta gracias //
  16. Some Interiors in my server when I enter them I fall under the interior that I entered. It also happens when I set Interior How Can I fix this?? PS: All Interiors are bugged like this execpt AMMUN1 Id 1
  17. fr_server.lua: function warpMe(targetPlayer) local interior = getElementInterior(targetPlayer) setElementInterior(source, interior) setCameraInterior(source, interior) if getElementData(targetPlayer, "IsWarpLocked") then outputChatBox("Ez a játékos nem engedte meg hogy rá warpoljanak", source, r, g, b, false) return end if isPedDead(source) then spawnMe() end local vehicle = getPedOccupiedVehicle(targetPlayer) if not vehicle then -- target player is not in a vehicle - just warp next to him local x, y, z = getElementPosition(targetPlayer) clientCall(source, 'setPlayerPosition', x + 2, y, z) else -- target player is in a vehicle - warp into it if there's space left if getPedOccupiedVehicle(source) then --removePlayerFromVehicle(source) outputChatBox('Get out of your vehicle first.', source) return end local numseats = getVehicleMaxPassengers(vehicle) for i=0,numseats do if not getVehicleOccupant(vehicle, i) then if isPedDead(source) then local x, y, z = getElementPosition(vehicle) spawnMe(x + 4, y, z + 1) end warpPedIntoVehicle(source, vehicle, i) return end end outputChatBox("No free seats left in " .. getPlayerName(targetPlayer) .. "'s vehicle.", source, 255, 0, 0) end end addCommandHandler("warpki", function(player) outputChatBox("Nem tudnak rád warpolni", source, r, g, b) setElementData(player, "IsWarpLocked", true) end) addCommandHandler("warpbe", function(player) outputChatBox("Mostmár rád tudnak warpolni", source, r, g, b) removeElementData(player, "IsWarpLocked") end) fr_client.lua: function toggleWarponoff() local state = guiCheckBoxGetSelected(getControl(wndMain, 'warpkibe')) guiCheckBoxSetSelected(getControl(wndMain, 'warpkibe'), not state) server.IsWarpLocked(state) end {'chk', id='warpkibe', text='Warp', onclick=toggleWarponoff},
  18. I saw alot of servers that allow you to play while downloading the mods in a spinner or anything else.. If anyone has a script like this state it here,please!
  19. HurT

    Deleted

    DELETED Reason:Double topics
  20. Hola comunidad española de MTA esta vez tengo un problema que no entiendo, pues tengo un script bajado de la comunidad que es un Vehicle System donde puedo bloquear los autos para team,class y user. El script funciona al pelo pero tiene algo que no me gusta y lo quiero cambiar la cosa es que cuando un jugador no es de una class,team o user que se ha bloqueado el auto le manda un mensaje con lo siguiente escrito "Este vehículo está bloqueado a el siguientes Grupo:Nombre del grupo al que ha sido bloqueado" Pues ese mensaje lo manda en outputchatbox y yo no lo quiero por hay si no un export que tengo. Pues le hago un export como estoy acostrumbado a hacerle a mis otros script y funciona y con este no, Aqui el script. function enterVehicle(player,seat,jacked) if getElementData(source,"lockedTo") then local carGroup = getElementData(source,"lockedTo") local lockKind = getElementData(source,"lockType") local carGroups = split(carGroup,",") local carCheckingTable = {} for i,v in ipairs(carGroups) do carCheckingTable[v] = true end if lockKind == "team" then local playerTeam = getTeamName(getPlayerTeam(player)) if seat == 0 then if not carCheckingTable[playerTeam] then cancelEvent() outputDebugString("Locked") exports.SAVGcommands:sendMessage("Este vehículo está bloqueado a el siguiente Equipo: ".. carGroup ..".",player,255,255,0) end end elseif lockKind == "user" then local playerAccount = getAccountName(getPlayerAccount(player)) if seat == 0 then if not carCheckingTable[playerAccount] then cancelEvent() outputDebugString("Locked") exports.SAVGcommands:sendMessage("Este vehículo está bloqueado a el siguiente Usuario: ".. carGroup ..".",player,255,255,0) end end elseif lockKind == "acl" then local playerAcl = isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)),aclGetGroup(carGroup)) if seat == 0 then if playerAcl == false then cancelEvent() outputDebugString("Locked") outputChatBox("This vehicle is locked to ".. lockKind .. "(s) : ".. carGroup ..".",player,255,0,0) end end elseif lockKind == "class" then local playerClass = getElementData(player,"class") or "" if seat == 0 then if not carCheckingTable[playerClass] then cancelEvent() outputDebugString("Locked") exports.SAVGcommands:sendMessage("Este vehículo está bloqueado a el siguiente Clase: ".. carGroup ..".",player,255,255,0) end end elseif lockKind == "group" then local playerGroup = getElementData(player,"group") if seat == 0 then if not carCheckingTable[playerGroup] then cancelEvent() outputDebugString("Locked") outputChatBox("Este vehículo está bloqueado a el siguientes Grupo: ".. carGroup ..".",player,255,0,0) end end elseif lockKind == "gang" then local playerGang = getElementData(player,"gang") if seat == 0 then if not carCheckingTable[playerGang] then cancelEvent() outputDebugString("Locked") outputChatBox("Este vehículo está bloqueado a la siguiente Pandilla: ".. carGroup ..".",player,255,0,0) end end end end end
  21. ZkillCatIV

    [HELP]

    Im somewhat new in scripting, i was making a login panel and the login panel is working and i can login and register but the only problem i have is that when i get join and i'm on the login panel and somebody else joins and is on the panel and mess with it my panel also changes,it acts like the login panel was in the server instead of just the player that joins. to be honest i don't really understand the localPlayer and the root and the getRootElement() and all of that but i have a feeling that that is what is going wrong on my script please help me
  22. Hello, I have a radar on my server when I'll turn it does not appear, someone help me? local screenW,screenH = guiGetScreenSize() local resW,resH = 1366,768 local sW,sH = (screenW/resW), (screenH/resH) local turn = true local alpha = 255 addEventHandler( "onClientResourceStart", resourceRoot, function() setPlayerHudComponentVisible ( "radar", false ) --# Create Textures hudMaskFX = dxCreateShader("mask.fx") radarTexture = dxCreateTexture("img/map.png") maskTexture = dxCreateTexture("img/radar_mask.png") checkTextures = ( hudMaskFX and radarTexture and maskTexture ) if not ( checkTextures ) then outputChatBox( "[Arma II DayZ Radar]: Could not create textures. Please use debugscript 3" ) else dxSetShaderValue( hudMaskFX, "sPicTexture", radarTexture ) dxSetShaderValue( hudMaskFX, "sMaskTexture", maskTexture ) end end ) function drawRadar() if not ( checkTextures ) then return end dxSetShaderValue( hudMaskFX, "sMaskTexture", maskTexture ) local x,y = getElementPosition( localPlayer ) local zoom = 13 x = ( x ) / 6000 y = ( y ) / -6000 dxSetShaderValue( hudMaskFX, "gUVPosition", x,y ) dxSetShaderValue( hudMaskFX, "gUVScale", 1/zoom, 1/zoom ) --# Get rotations local _, _, c_Rot = getElementRotation( getCamera()); local _, _, p_Rot = getElementRotation( localPlayer ) dxSetShaderValue( hudMaskFX, "gUVRotAngle", math.rad( -c_Rot )) if getElementData(getLocalPlayer(),"GPS") >= 1 then setPlayerHudComponentVisible ( "radar", false ) --# Alpha --dxDrawRectangle(23.5*sW, 676.5*sH, 130.5*sW, 9.2*sH, HP_Alpha) --dxDrawRectangle(156.6*sW, 676.5*sH, 65*sW, 9.2*sH, tocolor(0, 102, 255, 100)) --dxDrawRectangle(225*sW, 676.5*sH, 62.6*sW, 9.2*sH, tocolor(255, 255, 0, 100)) --# Bars --dxDrawRectangle(23.5*sW, 676.5*sH, 130.5*sW/maxHealth*playerHealth, 9.2*sH, HP_Colour) --dxDrawRectangle(156.6*sW, 676.5*sH, 65*sW/100*playerArmor, 9.2*sH, tocolor(0, 102, 255, 190)) --dxDrawRectangle(225*sW, 676.5*sH, 62.6*sW/1000*playerOxygen, 9.2*sH, tocolor(255, 255, 0, 190)) --# Minimap x,y,w,h 21 -- dxDrawImage(-6*sW, 500*sH, 300*sW, 250*sH, "img/radar_cover.png", 0, 0, 0, tocolor(255, 255, 255, 255)) dxDrawImage(0*sW, 592*sH, 216*sW, 183*sH, "img/radar_cover.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawImage(0*sW, 598*sH, 197*sW, 125*sH, hudMaskFX, 0,0,0, tocolor(255,255,255,255)) dxDrawImage(90*sW, 655*sH, 21*sW, 21*sH, "img/radar_player.png", -p_Rot+c_Rot, 0, 0, tocolor(200, 200, 200, 200)) end --# Wanted local g_wl = getPlayerWantedLevel( localPlayer ) if ( g_wl > 0 ) then if ( turn == true ) then alpha = alpha + 5 if ( alpha > 180 ) then alpha = 180 turn = false end elseif ( turn == false ) then alpha = alpha - 5 if ( alpha < 0 ) then alpha = 0 turn = true end end --dxDrawRectangle(23*sW, 536*sH, 265*sW, 135*sH, tocolor(0, 102, 255, alpha)) else return end end addEventHandler( "onClientRender", root, drawRadar) addEventHandler( "onClientResourceStop", resourceRoot, function() setPlayerHudComponentVisible ( "radar", true ) end)
  23. dsmatias

    [ HELP ]

    Can someone help me? when I give restart this script appears this error, how can I solve? Erro: http://prntscr.com/cgkemp
  24. Hi. I'm trying to do script while which block control HORN from other keys than ( H // CAPSLOCK) Code server: function klakson (source) if (isKeyBound (source,"capslock")) or (isKeyBound (source,"h")) then setControlState (source, "horn", true ) outputChatBox ("on",getRootElement(),255,0,0,true) -- only information else toggleControl ( "horn", false ) outputChatBox (source,"off",getRootElement(),255,0,0,true) -- only information end end addEventHandler ("onClientResourceStart",getRootElement(),klakson) Any ideas? ;/