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 578 results

  1. --revive script by: sRT, Richard C' Lugovoi function revivePlayerFromPK(thePlayer, commandName, targetPlayer) --local theTeam = getPlayerTeam(thePlayer) --if (teamID==1 or teamID==2 or teamID==3 or teamID==47 or teamID==59) then -- if exports.global:hasItem(thePlayer, 70) then -- exports.global:takeItem(thePlayer, 70) -- outputChatBox("You have revived And Take From You 500$", thePlayer, 0, 255, 0) if getPlayerTeam( thePlayer ) == getTeamFromName( "Los Santos Fire Department" ) then if not (targetPlayer) then outputChatBox("SYNTAX: /" .. commandName .. " [Player Partial Name / ID]", thePlayer, 255, 194, 14) else local targetPlayer, targetPlayerName = exports.global:findPlayerByPartialNick(thePlayer, targetPlayer) if getElementData(targetPlayer, "dead") == 1 then -- if exports.global:hasMoney(targetPlayer, 500) then -- tratment cost exports.global:takeMoney(targetPlayer, 500) -- here what im tryin do charging the player $500 for the reviv else outputChatBox("you dont have eanugh money to be treated ", targetPlayer, 0, 255, 0) triggerClientEvent(targetPlayer,"es-system:closeRespawnButton",targetPlayer end if targetPlayer then --fadeCamera(thePlayer, true) --outputChatBox("Respawning...", thePlayer) if isTimer(changeDeathViewTimer) == true then killTimer(changeDeathViewTimer) end local x,y,z = getElementPosition(targetPlayer) local int = getElementInterior(targetPlayer) local dim = getElementDimension(targetPlayer) local skin = getElementModel(targetPlayer) local team = getPlayerTeam(targetPlayer) setPedHeadless(targetPlayer, false) setCameraInterior(targetPlayer, int) setCameraTarget(targetPlayer, targetPlayer) setElementData(targetPlayer, "dead", 0) spawnPlayer(targetPlayer, x, y, z, 0)--, team) --(team ~= "Los Santos Emergency Services") setElementModel(targetPlayer,skin) setPlayerTeam(targetPlayer, team) setElementInterior(targetPlayer, int) setElementDimension(targetPlayer, dim) triggerEvent("updateLocalGuns", targetPlayer) --local adminTitle = tostring(exports.global:getPlayerAdminTitle(thePlayer)) outputChatBox("Medic"..tostring(getPlayerName(thePlayer):gsub("_"," ")).." has revived you", targetPlayer, 0, 255, 0) outputChatBox("you successfully revied !! "..tostring(getPlayerName(targetPlayer):gsub("_"," "))..".", thePlayer, 0, 255, 0) outputChatBox("You have been revived And charged 500$", thePlayer, 0, 255, 0) -- here what im tryin output to the treated player exports.global:sendMessageToAdmins("AdmCmd: "..getPlayerName(thePlayer).." mrevived "..tostring(getPlayerName(targetPlayer))..".") exports.logs:dbLog(thePlayer, 4, targetPlayer, "REVIVED from PK") else outputChatBox(tostring(getPlayerName(targetPlayer):gsub("_"," ")).." is not dead.", thePlayer, 255, 0, 0) end end end end end addCommandHandler("mrevive", revivePlayerFromPK, false, false) -- /mrevive system by sRT function adminHeal(thePlayer, commandName, targetPlayer) if getPlayerTeam( thePlayer ) == getTeamFromName( "Los Santos Fire Department" ) then -- faction name local health = 100 local targetPlayerName = getPlayerName(thePlayer):gsub("_", " ") if not (targetPlayer) then targetPlayer = thePlayer else targetPlayer, targetPlayerName = exports.global:findPlayerByPartialNick(thePlayer, targetPlayer) end if exports.global:hasMoney(targetPlayer, 200) then -- treatment cost exports.global:takeMoney(targetPlayer, 200) -- ^^^^^^^^^^^^ outputChatBox("You have been treated and charged 200$", targetPlayer, 0, 255, 0) -- output the cost else outputChatBox("You dont have eanugh money", targetPlayer, 0, 255, 0) end if targetPlayer then setElementHealth(targetPlayer, tonumber(health)) -- outputChatBox("The Medic " .. thePlayerName .. " Has Treat You , Now Your Health : " .. getAlivePlayers .. " Health.", targetPlayer, 0, 255, 0) else triggerEvent("onPlayerHeal", targetPlayer, true) exports.logs:dbLog(thePlayer, 4, targetPlayer, "AHEAL "..health) end end end addCommandHandler("maheal", adminHeal, false, false) Hello guys , im stuck here and i really need help . what i, tryin do is making a Medic revive . evrey thing in this script works fine untill i add the if exports.global:hasMoney(targetPlayer, 500) then -- tratment cost exports.global:takeMoney(targetPlayer, 500) -- here what im tryin do charging the player $500 for the reviv else outputChatBox("you dont have eanugh money to be treated ", targetPlayer, 0, 255, 0) ===== here is the code working with no problems at all except it wont charge target player for the revive . --revive script by: function revivePlayerFromPK(thePlayer, commandName, targetPlayer) --local theTeam = getPlayerTeam(thePlayer) --if (teamID==1 or teamID==2 or teamID==3 or teamID==47 or teamID==59) then -- if exports.global:hasItem(thePlayer, 70) then -- exports.global:takeItem(thePlayer, 70) -- outputChatBox("You have revived And Take From You 500$", thePlayer, 0, 255, 0) if getPlayerTeam( thePlayer ) == getTeamFromName( "Los Santos Fire Department" ) then if not (targetPlayer) then outputChatBox("SYNTAX: /" .. commandName .. " [Player Partial Name / ID]", thePlayer, 255, 194, 14) else local targetPlayer, targetPlayerName = exports.global:findPlayerByPartialNick(thePlayer, targetPlayer) if targetPlayer then if getElementData(targetPlayer, "dead") == 1 then triggerClientEvent(targetPlayer,"es-system:closeRespawnButton",targetPlayer) --fadeCamera(thePlayer, true) --outputChatBox("Respawning...", thePlayer) if isTimer(changeDeathViewTimer) == true then killTimer(changeDeathViewTimer) end local x,y,z = getElementPosition(targetPlayer) local int = getElementInterior(targetPlayer) local dim = getElementDimension(targetPlayer) local skin = getElementModel(targetPlayer) local team = getPlayerTeam(targetPlayer) setPedHeadless(targetPlayer, false) setCameraInterior(targetPlayer, int) setCameraTarget(targetPlayer, targetPlayer) setElementData(targetPlayer, "dead", 0) spawnPlayer(targetPlayer, x, y, z, 0)--, team) --(team ~= "Los Santos Emergency Services") setElementModel(targetPlayer,skin) setPlayerTeam(targetPlayer, team) setElementInterior(targetPlayer, int) setElementDimension(targetPlayer, dim) triggerEvent("updateLocalGuns", targetPlayer) --local adminTitle = tostring(exports.global:getPlayerAdminTitle(thePlayer)) outputChatBox("The medic "..tostring(getPlayerName(thePlayer):gsub("_"," ")).." has been revived you", targetPlayer, 0, 255, 0) outputChatBox("You have revived "..tostring(getPlayerName(targetPlayer):gsub("_"," "))..".", thePlayer, 0, 255, 0) --if exports.global:hasItem(thePlayer, 34) then -- exports.global:takeItem(thePlayer, 34) -- outputChatBox("You have revived And Take From You 500$", thePlayer, 0, 255, 0) exports.global:sendMessageToAdmins("AdmCmd: "..getPlayerName(thePlayer).." mrevived "..tostring(getPlayerName(targetPlayer))..".") exports.logs:dbLog(thePlayer, 4, targetPlayer, "REVIVED from PK") else outputChatBox(tostring(getPlayerName(targetPlayer):gsub("_"," ")).." is not dead.", thePlayer, 255, 0, 0) end end end end end addCommandHandler("mrevive", revivePlayerFromPK, false, false) -- /mrevive system by sRT function adminHeal(thePlayer, commandName, targetPlayer) if getPlayerTeam( thePlayer ) == getTeamFromName( "Los Santos Fire Department" ) then -- faction name local health = 100 local targetPlayerName = getPlayerName(thePlayer):gsub("_", " ") if not (targetPlayer) then targetPlayer = thePlayer else targetPlayer, targetPlayerName = exports.global:findPlayerByPartialNick(thePlayer, targetPlayer) end if exports.global:hasMoney(thePlayer, 200) then -- treatment cost exports.global:takeMoney(thePlayer, 200) -- treatment cost outputChatBox("You have been revived and take from you 200$", targetPlayer, 0, 255, 0) -- output else outputChatBox("You dont have money", targetPlayer, 0, 255, 0) end if targetPlayer then setElementHealth(targetPlayer, tonumber(health)) -- outputChatBox("The Medic " .. targetPlayerName .. " Has Treat You , Now Your Health : " .. getAlivePlayers .. " Health.", thePlayer, 0, 255, 0) outputChatBox("The medic " .. targetPlayerName .. " has treat you , now your health is : " .. health .. " health.", thePlayer, 0, 255, 0) else triggerEvent("onPlayerHeal", targetPlayer, true) exports.logs:dbLog(thePlayer, 4, targetPlayer, "AHEAL "..health) end end end addCommandHandler("maheal", adminHeal, false, false) === im tryin charge the target player $500 for the revive and output the charge . it wont let me do it . idont know how should i do this can you guys please help me i dont have that much of experience
  2. local endmusic = { "endr1.ogg", "endr2.ogg", "endr3.ogg", "endr4.ogg", "endr5.ogg" } endRoundOgg = playSound(endmusic[ math.random (#endmusic)] I want to add random endroudn musics for stealth pro gamemode. i want to know this code is true or false or need help for do it pls help me
  3. How I run the line only once, until the condition is true again? timehour, timeminute = getTime() var = 0 if timehour == 12 and timeminute == 0 then var = var + 1 --I want to execute this line only once whenever the condition is true end Apparently the line runs more than once during the time of the condition.
  4. Olá, eu tenho um servidor, e tem alguns sistemas de vips e corporações. Gostaria de saber se tem como colocar o painel B por acl (grupo), e se tiver, como faço isso? Ajudem por favor. Obrigado!
  5. any problem this code ? pls help me handler = dbConnect("mysql", "dbname="..mysqldatabase2..";host="..mysqlhost2, mysqluser2, mysqlpassword2,";unix_socket="/var/run/mysqld/mysqld.sock, "autoreconnect=1")
  6. when i loging to my server there is welcoming letter on the left corner of my screen where its say Connected [ MTA SA server 1.5.5 [GNU/Linux]] underneath it pls help how can i edited or remove it her is a picture explaining what i mean .
  7. السلام عليكم زي ما انتم شايفين في الصورة تطلع رساله ترحيبيه ابي اشيلها او اعدل عليها ماني قادر القا الملف الي هي فيه ياليت احد يساعدني ... OMG سيرفر حياة واقعيه يرحب بكم OMG
  8. Hi, I modeled a map and would like to break the field-of-view limit. there is a limit of 300 units of the distance object, how can I make to make all objects visible from a greater distance? txd = engineLoadTXD ( "1.txd" ) engineImportTXD ( txd, 1515 ) dff = engineLoadDFF ( "1.dff" ) engineReplaceModel ( dff, 1515 ) col = engineLoadCOL( "1.col" ) engineReplaceCOL( col, 1515 ) engineSetModelLODDistance(1515, 300)
  9. MTADiag v2.7.24 по Towncivilian MTADiag версии 2.7.24 МТА путь установки: D:\MTA МТА версия: 1.5.5-9.13824.0.000 ГТА установите путь: D:\GTA DirectX обновлен. Проверка на отсутствие файлов GTA, пожалуйста, подождите... Проверив 383 из 383... Проверка измененных или нестандартных ГТА файлы, пожалуйста, подождите... Проверка 11 из 383...Нестандартный GTA файл: \ audio\CONFIG\StrmPaks.дат проверки 18 из 383...Нестандартные ГТА файл: \аудио\архив\SPC_FA проверки 19 из 383...Нестандартные ГТА файл: \аудио\архив\SPC_GA проверки 20 из 383...Нестандартные ГТА файл: \аудио\архив\SPC_NA проверяя 22 из 383...Нестандартные ГТА файл: \аудио\потоки\АА проверяя 295 из 383...Нестандартный GTA файл: \ models\fonts.на txd проверка 382 из 383...Нестандартный GTA файл: \ text\american.gxt Проверка 383 из 383... Сбор информации. Подождать... [==================================================] 100% Сгенерированный файл журнала. Загрузка в Pastebin... Ссылка сайт pastebin (https://pastebin.mtasa.com/502327301) скопирован в буфер обмена. Пожалуйста, включите ссылку на сайт pastebin в свой пост на форуме. Для продолжения нажмите любую клавишу . . . https://pastebin.mtasa.com/502327301
  10. Guys, i made a marker in dayz that when i get in it i got new skin in dayz and the skin worked and all things fine but when i get the new skin after 10-15 second my last skin back and my new skin has gone . how to fix that ? newskin = createMarker ( 1856.0751, 851.0827, 9.408, "cylinder", 1.5, 255, 255, 0, 170 ) function skin(hitPlayer) if getElementType(hitPlayer) == "player" then setPlayerSkin ( hitPlayer, 211 ) end end addEventHandler ( "onMarkerHit", newskin, skin )
  11. my server is with all ports open in vps everything ok but does not appear in the list for players
  12. I want create custom weapons, anyone teach me to create custom weapons please
  13. I need teach do how make dxScroll
  14. You were kicked from the game (SD #16 021A) < that's why i can'T join servers pls help me my pc is clean my files are clean i have no mod or no cheat that problem started today after the new update
  15. I want play songs from youtube, but i don't know how to use a converter to this.. Anyone can send me a WORKING link like this: http://www.convertmp3.io/fetch/?video=..ytlink..? Sorry for my bad english...
  16. There is some way to convert any rounded quantity from 5 to 5 for example the amount 893 that rounds to 895 or de quantity 562 is rounded to 560
  17. I maked a Password based gate script with dx and normal gui pic This resource is working properly but i have a problem iwant to setup close butten and gui visible set to marker pls help me this is client side GUIEditor = { button = {}, edit = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.button[1] = guiCreateButton(534, 370, 265, 54, "OPEN THE GATE", false) GUIEditor.button[2] = guiCreateButton(872, 429, 62, 37, "Close", false) GUIEditor.edit[1] = guiCreateEdit(463, 269, 250, 43, "", false) addEventHandler ( "onClientGUIClick", GUIEditor.button[1], checkPassword ) guiEditSetMasked ( GUIEditor.edit[1], true ) end ) password = "1234" function checkPassword () local text = guiGetText ( GUIEditor.edit[1] ) if text == password then triggerServerEvent ( "openGate", resourceRoot) else outputChatBox ( "Password Incorrect!" ) end end this is the server side local gate = createObject(980,-2423.94385, -609.48846, 132.56250, 0, 0, 0) function open() moveObject(gate, 980,-2414.95703, -603.12976, 132.56250, 0, 0, 0) end addEvent( "openGate", true ) addEventHandler( "openGate", resourceRoot, open ) <meta> <meta> <info type="script" name="psswd based gate" author="heshan" version="1.0.0"></info> <script src="my2.lua" type="client" ></script> <script src="my2s.lua" type="server" ></script> </meta> pls help
  18. Ivan Orel

    Local CHAT.

    How to add a local chat to the server? Please help me.
  19. Hello. I have a global mod, really global. It has close to 65.000 models, so I have to use limitadjuster fastman92. I need to adapt an AIT client so that players can play my modification online. By type MTA Province (Google) I disabled the .asi file check https://imgur.com/a/EafjFOO изменив .asi на .ass(:D) изменил еще этот файл, заменив false на true https://imgur.com/a/aTp5S9s. I compiled the MTA, it worked, the MTA turns on, and does not pay attention to the .asi files in the game folder. The MTA starts up and works, I started the local server, and I'll try to connect, but my game is minimized, and after 10 seconds it flies. It starts proxy_sa, I started it not with the help of MTA, but just from the game folder, I got an error, there was a shortage of .dll files, I threw them from the AIT folder to the GTA folder, it worked. Proxy_sa was turned on. But still when connecting to the server through the client, the game is minimized, and after 10 seconds it turns off, in dispatching tasks, it is written that proxy_sa does not respond. Also on the server, I allowed players to use the modified gta3.img, and also removed the / maps and the rest from the verification of the data. But with all this, it does not work properly. Help me, please.
  20. Good morning/afternoon/evening, I have stumbled across a quite annoying problem with animations and, sadly, reviewing many animation-related topics did not lead me to solving the problem. Goal is simple: force a "talking" animation upon player when he says something in the chat and make him able to move during the animation. The issue is that the player, who was previously affected by an animation, keeps running with his arms down below. The issue seems to stick unless a player/ped performs any kind of action - punching, jumping, shooting e.t.c. [video linked below in a spoiler] Topics that covered some kind of animation freezing issues were usually solved by a) using setTimer() and nullifying the animation with setPedAnimation(ped) function combination or b) making an animation stalemate [by setting freezeLastFrame to false]; however, both of those methods are dissatisfying. If someone has stumbled across anything similar, any kind of advice will be of much help! Thanks in advance! Code that displays the issue: addEventHandler ( "onPlayerChat", root, function ( message, mType ) if ( mType == 0 ) then --[[ .. some code .. ]]-- if not isPedInVehicle(source) then setPedAnimation (source, "ped", "IDLE_CHAT", 0, false, true, true, true) end elseif ( mType == 1 ) then --[[ .. some code .. ]]-- end end ) Video example:
  21. I download mta with gta san andreas good i entry in mta and he crash me and he typed ( AUDIO/CONFIG/BANKSOLT.DAT ) How i can do to work ? Help plz GTA:SA he intimpineited a problem at open fisier AUDIO/CONFIG/BANKSOLT.DAT
  22. Could someone help fix my problēmas with my server my Skype is 100CENT iņ picture is dog
  23. I got a custom hud in my MTA server,but the default one is glitching in it! how to fix this error hud downloaded from here pls help me to fix this eror