Jump to content

Search the Community

Showing results for tags 'script'.

  • 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
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

  1. Eu tenho esse script de gangues que achei o melhor pois já joguei em servidores que possuía ele mas eu utilizo um sistema de tags por exemplo de níveis, começa lá em baixo com everyone e sobe para vip, Bope, ajudante, moderador... até console, mas quando dou /gangtag "nome da tag" o script simplesmente não faz nada, pelo que notei ele funciona normal pra criar a gang mas a tag não... Aqui o script de gang: https://community.multitheftauto.com/index.php?p=resources&s=details&id=12014 e meu sistema de tags é esse http://mods-mta-online.blogspot.com.br/2014/09/tags-admin.html Obrigado a todos que ajudarem eu agradeço de coração :3. É para meu servidor novo :3 (já montado mas sem gangs kk)
  2. Eu sou novo no fórum, recentemente abri um servidor, e gostaria de uma ajuda, eu tenho um script que ele tranca veículos para um determinado grupo como Console, mas eu não sei fazer o spawn dele, pois o único que tenho faz com que o player já fique dentro do veículo, sendo que o veiculo está por exemplo privado apenas quando o player tenta abrir a porta com F ou G, e ali no caso o jogador cai dentro do carro e pode utilizar ele, eu gostaria de saber se alguém poderia me doar um script de privar veículos e com isso utilizar um comando para o jogador cair dentro do veiculo, mas caso o jogador não seja de determinado grupo aparece um aviso no chat que somente X grupo "ex uma gang, uma corp ou um jogador solo" pode pegar o veículo, obrigado a todos que puderem ajudar, eu ainda não sei fazer script e nem sei onde se aprende, eu apenas sei editar basicamente (um pouco de gambiarra junto kkk).
  3. Olá, gostaria de mudar esse sistema para que o jogador dominar a área através do marker e não pela colisão da área. Ai o marker ia fazer a função do ColCuboid esperou que tenha entendido .. ------------------------------------------------------ -- Scripting By Sasu -- Copyright © 2013-2015 - All rights reserved. ------------------------------------------------------ local turfPos = { { 2133.1950683594, 633.66455078125, 0, 197.5, 92, 90 }, } local turfElement = {} local turfTimer = {} local checkComplete = false local messages = { [1] = "Sistema de Territorio by:Sasuke * foi iniciado corretamente!", [2] = "Esse território já pertence a %s", [3] = "Você entrou em %s's do território. Aguarde 2 minutos para dominar!", [4] = "Este território não pertence a ninguém. Aguarde 2 minutos para dominar!", [5] = "Parabéns. Você consquistou o território!", [6] = "Se você não voltar dentro de 20s, você não vai dominar o território", [7] = "Você não conseguiu consquisou o território devido à ausência" } -- Nadie = None | Just a translation addEventHandler("onResourceStart", resourceRoot, function() executeSQLQuery("CREATE TABLE IF NOT EXISTS Turf_System ( Turfs TEXT, GangOwner TEXT, r INT, g INT, b INT)") -- local check = executeSQLQuery("SELECT * FROM Turf_System" ) if #check == 0 then for i=1,#turfPos do executeSQLQuery("INSERT INTO Turf_System(Turfs,GangOwner,r,g,b) VALUES(?,?,?,?,?)", "Turf["..tostring(i).."]", "Nadie", 0, 255, 0) end elseif #check > 1 then for i = #check, #turfPos do executeSQLQuery("INSERT INTO Turf_System(Turfs,GangOwner,r,g,b) VALUES(?,?,?,?,?)", "Turf["..tostring(i).."]", "Nadie", 0, 255, 0) end end for i,v in ipairs(turfPos) do local sqlData = executeSQLQuery("SELECT * FROM Turf_System WHERE Turfs=?", "Turf["..tostring(i).."]") local turfCol = createColCuboid(unpack(v)) setElementData(turfCol, "getTurfGang", sqlData[1].GangOwner) local turfArea = createRadarArea(v[1], v[2], v[4], v[5], sqlData[1].r, sqlData[1].g, sqlData[1].b, 175) turfElement[turfCol] = {turfCol, turfArea, i} turfTimer[turfCol] = {} end outputDebugString( messages[1] ) end ) addEventHandler ( "onColShapeHit", root, function ( player ) if turfElement[source] and source == turfElement[source][1] then local turf,area,id = unpack( turfElement[source] ) local playerGang = getElementData ( player, "gang" ) local turfGang = executeSQLQuery("SELECT GangOwner FROM Turf_System WHERE Turfs=?", "Turf["..tostring(id).."]" ) if ( turfGang[1].GangOwner == playerGang ) then outputChatBox( messages[2]:format( turfGang[1].GangOwner or "None" ), player, 0, 255, 0, false ) else local playerGang = getElementData ( player, "gang" ) setElementData( source, "warTurf", playerGang ) if ( isTimer ( turfTimer[source][1] ) ) then if isTimer( turfTimer[source][2] ) then killTimer( turfTimer[source][2] ) end return end if ( playerGang ) then local r, g, b = unpack ( getGangColor ( playerGang ) ) -- local r, g, b = 255, 255, 255 setRadarAreaFlashing ( area, true ) if turfGang[1].GangOwner ~= "Nadie" then outputChatBox( messages[3]:format( turfGang[1].GangOwner ), player, 0, 255, 0, false ) else outputChatBox( messages[4], player, 0, 255, 0, false ) end turfTimer[source][1] = setTimer ( function ( ) local players = getGangPlayersInTurf ( turf, playerGang ) setRadarAreaColor ( area, tonumber(r), tonumber(g), tonumber(b), 175 ) for _, player in ipairs ( players ) do outputChatBox( messages[5], player, 0, 255, 0, false ) triggerClientEvent(player, "onTakeTurf", player) givePlayerMoney ( player, 4000 ) executeSQLQuery("UPDATE Turf_System SET GangOwner=?,r=?,g=?,b=? WHERE Turfs=?", playerGang, tonumber(r), tonumber(g), tonumber(b), "Turf["..tostring(id).."]" ) -- setElementData ( turf, "getTurfGang", playerGang ) end setRadarAreaFlashing ( area, false ) end ,120000, 1) end end end end ) addEventHandler ( "onColShapeLeave", root, function( player ) if turfElement[source] and source == turfElement[source][1] then if isTimer( turfTimer[source][1] ) then local aGang = getElementData( source, "warTurf" ) local ps = getGangPlayersInTurf( source, aGang ) if #ps == 0 then outputChatBox( messages[6], player, 255, 0, 0 ) turfTimer[source][2] = setTimer( function(source, aGang) if isTimer(turfTimer[source][1]) then killTimer(turfTimer[source][1]) end setRadarAreaFlashing(turfElement[source][2], false) for _, v in ipairs( getElementsByType("player") ) do if getElementData(v, "gang") == aGang then outputChatBox(messages[7], v, 255, 0, 0) end end end , 20000, 1, source, aGang) end end end end ) function getGangPlayersInTurf( turf, gang ) -- element, string if turf and gang then local players = getElementsWithinColShape ( turf, "player" ) local gPla = {} for _, v in ipairs( players ) do if getElementData(v, "gang") == gang then table.insert(gPla, v) end end return gPla end end function getGangColor(gangName) return exports[ "gang_system" ]:getGangData ( gangName, "color" ) end
  4. function auto ( ) if getElementData ( source, "carLicense" ) then outputChatBox ( "#FF0000-Auto Escola-#FFFF00Você já passou No Teste!", source, 200, 0, 0, true ) else vedro = createVehicle ( 479, 1615.8929443359,-1135.5010986328,23.90625,0,0,0 ) setElementInterior (source,0) setElementDimension (source,0) acc = getPlayerAccount ( source ) setAccountData ( acc, "carLicense", "1" ) setElementData ( source, "carLicense", true) warpPedIntoVehicle ( source, vedro ) outputChatBox ( "#FF0000-Auto Escola-#FFFF00Você começou O Teste.", source, 255, 0, 0, true ) outputChatBox ( "#FF0000-Auto Escola-#FFFF00Siga os Marcadores Vermelhos Para completar O Teste.", source, 255, 0, 0, true ) outputChatBox ( "#FF0000-Auto Escola-#FFFF00Boa Sorte No Teste ", source, 255, 0, 0, true ) function killt(thePlayer) theVehicle = getPedOccupiedVehicle ( thePlayer ) id = getElementModel ( theVehicle ) if id == 479 then account = getPlayerAccount ( thePlayer ) setAccountData ( acc, "carLicense", "0" ) setElementData ( thePlayer, "carLicense", false) outputChatBox ( "#FF0000-Auto Escola-#FFFF00Voce nao passou no teste.", thePlayer, 255, 0, 0, true ) veh = getPedOccupiedVehicle ( thePlayer ) destroyElement (veh) setElementPosition(source,2442.2177734375, -1969.490234375, 13.546875) end end addEventHandler ( "onVehicleStartExit", getRootElement(), killt ) triggerClientEvent ( source, "startExaming", source ) end end addEventHandler( "markers", getRootElement(), auto ) Me ajudem quero fazer com que quando o jogador sair do veiculo ele seja levado para o local de onde saiu, irá teleporta para onde começou o teste. E os marcadores seja deletado Help me, I want to make sure that when the player leaves the vehicle he is taken to where he left, he will teleport where he started the test. And the markers are deleted function killt(thePlayer) theVehicle = getPedOccupiedVehicle ( thePlayer ) id = getElementModel ( theVehicle ) if id == 479 then account = getPlayerAccount ( thePlayer ) setAccountData ( acc, "carLicense", "0" ) setElementData ( thePlayer, "carLicense", false) outputChatBox ( "#FF0000-Auto Escola-#FFFF00Voce nao passou no teste.", thePlayer, 255, 0, 0, true ) veh = getPedOccupiedVehicle ( thePlayer ) destroyElement (veh) setElementPosition(source,2442.2177734375, -1969.490234375, 13.546875) Oque eu fiz de errado aqui? What did I do wrong here?
  5. agroupTitles = {} aperTitles = {} con = dbConnect("sqlite", ":/registry.db") function isPlayerManager(plr) if getElementData(plr,"admin.number") > 2 then return true end return false end function loadgTitles() dbExec(con, "CREATE TABLE IF NOT EXISTS groupTitles ('group', 'text')") dbExec(con, "CREATE TABLE IF NOT EXISTS perTitles ('account', 'text')") dbQuery(makeTitles, {}, con, "SELECT * FROM groupTitles") dbQuery(makpeTitles, {}, con, "SELECT * FROM perTitles") end addEventHandler("onResourceStart", resourceRoot, loadgTitles) function makeTitles(titleQuery) groupTitles = dbPoll(titleQuery, 222222) for i, titleData in ipairs(groupTitles) do if (titleData) then local num = #groupTitles + 1 groupTitles[num] = { titleData["group"], titleData["text"] } outputDebugString("1") end end end function makpeTitles(perQuery) perTitles = dbPoll(perQuery, 222222) for i, perData in ipairs(perTitles) do if (perData) then local num = #perTitles + 1 perTitles[num] = { perData["account"], perData["text"] } outputDebugString("2") end end end function specials () local bool = exports.CIGcrimboss:isPlayerBoss(client) triggerClientEvent("CIGCustomTitles.unlockBoss",client,bool) end addEvent("CIGCustomTitles.getData", true) addEventHandler("CIGCustomTitles.getData", root, specials) function save () local ct = getElementData(source,"ct") setAccountData(getPlayerAccount(source),"ctitle",ct) local r = getElementData(source,"r2") setAccountData(getPlayerAccount(source),"rrgb",r) local g = getElementData(source,"g2") setAccountData(getPlayerAccount(source),"grgb",g) local b = getElementData(source,"b2") setAccountData(getPlayerAccount(source),"brgb",b) end addEventHandler("onPlayerQuit",root,save) addEventHandler("onPlayerLogout",root,save) function save2 (_,acc) local ct = tostring(getAccountData(acc,"ctitle")) setElementData(source,"ct",ct) local rr = tostring(getAccountData(acc,"rrgb")) setElementData(source,"r2",rr) local bb = tostring(getAccountData(acc,"brgb")) setElementData(source,"b2",bb) local gg = tostring(getAccountData(acc,"grgb")) setElementData(source,"g2",gg) local name = getAccountName(acc) triggerClientEvent(source,"CIGcustomTitles.addTitles",source,name) end addEventHandler("onPlayerLogin",root,save2) function onplayerlo () local acc = getAccountName(getPlayerAccount(client)) for i, col in ipairs(agroupTitles) do local thename = col[1] if thename == getElementData(client,"g") then triggerClientEvent(client,"CIGcustomTitles.addATitle",client,col[2]) outputDebugString("4") end end end addEvent("CIGcustomTitles.checkGroup",true) addEventHandler("CIGcustomTitles.checkGroup",root,onplayerlo) function onplayerl () local acc = getAccountName(getPlayerAccount(client)) for i, col in ipairs(aperTitles) do local thename = col[1] if thename == acc then triggerClientEvent(client,"CIGcustomTitles.addATitle",client,col[2]) outputDebugString("5") end end end addEvent("CIGcustomTitles.checkTitle",true) addEventHandler("CIGcustomTitles.checkTitle",root,onplayerl)
  6. I want create a sound requester script, but how to convert yt link to mp3 with script? Sorry for my very bad english.
  7. Hello guys! I'm having a little problem, I'm a beginner in scripting, and I made this function because I'm creating a "police work" system, but when the event is executed, nothing happens that was written on the server, nor any error in the debug. (Sorry for English, I use a translator.) Server-side: function tornarPM(thePlayer) if not (isElement(thePlayer)) then return end local accountName = getAccountName(getPlayerAccount(thePlayer)) if accountName then aclGroupAddObject(aclGetGroup("PMESP"), "user."..accountName) exports.dxmessages:outputDx(thePlayer, "Seja bem vindo a PMESP! Vá até a garagem para aprender como funciona o trabalho!", "success") end end addEvent("ingressar",true) addEventHandler("ingressar", root, tornarPM) Client-side: function tornarPM(_,state) if isEventHandlerAdded("onClientRender", root, menu) then if state == "down" then if isCursorOnElement(screenW * 0.4066, screenH * 0.5117, screenW * 0.1574, screenH * 0.0651) then triggerServerEvent("ingressar", localPlayer) removeEventHandler("onClientRender", root, menu) showChat(true) showCursor(false) playSound("sfx/hit.mp3", false) if l_0_1 then l_0_1 = false end end end end end addEventHandler("onClientClick", root, tornarPM) Screenshot: https://i.imgur.com/ZYroOks.jpg
  8. Hello, I'm new in MTA scripting. I just checked zombies script by Slothman and I see server triggers punch in client and my question starts. What happens if client edits the script, someone gonna comment all punch action code lines than mean zombies don't attack him... Is it possible? It must be possible, the server doesn't calculate health... I didn't see any set element health code in server... Waiting for answers thanks.
  9. After I finished the first version of my character customization system i just realized its such a piece of crap, so i started writing a new version with a whole new concept. The first version worked with CJ skin and i just attached some custom head models to it. Conversely the new version is running with shaders and the skin is a custom dff. Here is a video of the head customization. The clothing is in progress yet, it takes a lot of time because i have to make custom cloth models. Hope you like it. Please don't ask for the source code, this script will never be released. Sorry.
  10. I have a problem, I tried to make a local blip for each player, that is, if you are a business owner on the server (in my case), then only you have a note of where your business is. Errors in the console are not any no, it's completely clean. ----------------------------------------------------- this is server.lua function dbCreateBusinessesCallback(queryHandle) local sql = dbPoll(queryHandle, 0) if sql and #sql > 0 then for index, sqlRow in ipairs(sql) do local pos = split(sqlRow["bPos"], ",") local bMarker = createMarker(pos[1], pos[2], pos[3], "corona", 1.5, settings["business.markerColor"][1], settings["business.markerColor"][2], settings["business.markerColor"][3], settings["business.markerColor"][4]) setElementInterior(bMarker, pos[4]) setElementDimension(bMarker, pos[5]) local timer = setTimer(businessPayout, sqlRow["bPayoutCurTime"] , 1, bMarker) setElementData(bMarker, "bData", {sqlRow["bID"], sqlRow["bName"], sqlRow["bOwner"], sqlRow["bCost"], sqlRow["bPayout"], sqlRow["bPayoutTime"], sqlRow["bPayoutOTime"], sqlRow["bPayoutUnit"], sqlRow["bBank"], timer}) local bData = getElementData(bMarker, "bData") local id, name, owner, cost, payout, payoutTime, payoutOTime, payoutUnit, bank, timer = unpack(bData) if settings["business.blip"] ~= false then if sqlRow["bOwner"] == "For Sale" then addEventHandler( 'onPlayerLogin', root, function(getPlayerAccount) setElementData( source, 'account', getAccountName(getPlayerAccount(player))); triggerClientEvent(source,"createBizBlips", source) end); end end addEventHandler("onMarkerHit", bMarker, onBusinessMarkerHit) addEventHandler("onMarkerLeave", bMarker, onBusinessMarkerLeave) local timer = setTimer(businessPayout, sqlRow["bPayoutCurTime"] , 1, bMarker) setElementData(bMarker, "bData", {sqlRow["bID"], sqlRow["bName"], sqlRow["bOwner"], sqlRow["bCost"], sqlRow["bPayout"], sqlRow["bPayoutTime"], sqlRow["bPayoutOTime"], sqlRow["bPayoutUnit"], sqlRow["bBank"], timer}) end end end ---------------------------------------------------- this is client.lua ---------------this is bind bindKey( 'i', 'both', function( key, keyState ) if keyState == 'down' then for k, v in ipairs ( getElementsByType( 'marker', getResourceRootElement() ) ) do if getElementData( v, 'bOwner' ) and getElementData( v, 'bOwner' )[7] then if getElementData( v, 'bOwner' )[7] ~= '' then else createBlipAttachedTo( v, 52 ); end; end; end; else for k, v in ipairs( getElementsByType( 'marker', getResourceRootElement() ) ) do if getElementData( v, 'bOwner' ) then for k, elem in ipairs( getAttachedElements( v ) ) do if getElementType( elem ) == 'bBlip' then destroyElement( elem ); end; end; end; end; createBlips() end; end ); ------------------------ And this is the second part function getPlayerByAccountName( name ) for i, v in ipairs( getElementsByType( 'player' ) ) do if getElementData( v, 'account' ) == name then return v; end; end; return false; end; function creatbBlips() local account = getAccount(owner) for k, v in ipairs ( getElementsByType( 'marker', getResourceRootElement() ) ) do if getElementData( v, 'bOwner' ) and getElementData( v, 'bOwner' )[7] then if getElementData( v, 'bOwner' )[7] == getElementData( localPlayer, account) then createBlipAttachedTo( v, 52 ); end; end; end; end addEvent("createBizBlips",true) addEventHandler("createBizBlips",root,createBlips) createBlips() help me pleas :3 so, then I'm a terrible perplexity
  11. How to get mute remaining time? For example i write /getmute, and then output "Mute remaining time: 5 mins", or "You are not muted". Sorry for my bad english.
  12. I want to drive cars from the server, mean cars are moving without non-player control.. Is it possible? I mean cars are spawned and drive automatically from the server.. Thanks
  13. For example, when i have 1.000.000$ convert to: 1M$, or if i have 2.400.000$ convert to: 2.44M$. How to make this possible?
  14. I want create this effect: Effect with a dx image. But i don't know, how to make this possible.. Anyone can help?
  15. I want make a script, which make shorten the dx text. For example: if the dx text is "This is the dxtext", show instead of "This is the dxtext" -> "This is th...". How to make this? Sorry for my very bad english.
  16. Hi guys, as you see in many games especially in fps , when you hurt your screen turn red. Can you make me one?
  17. Personally, I'm posting in this category, in case this post can not be here I remove. Well, I'm putting together a "Vip Panel" for my server. The problem I'm having is that when I set up the position with the DX for example: Skin 1 - Skin 2 Vehicle 1 - Vehicle 2 Life / Armor - Weapons Destroy vehicle Skins 1 and 2 work perfectly when you click Vehicles 1 and 2 are also working properly But when I click either on Life / Armor or on Guns he gives me the cars I set for the buttons on vehicles Can someone help me? Below are the codes server.lua function showPanel(thePlayer) accountname = getAccountName(getPlayerAccount(thePlayer)) if isObjectInACLGroup("user." .. accountname, aclGetGroup("hawk")) then triggerClientEvent(thePlayer, "STOP", getRootElement()) else end end function onResStart() for index, player in ipairs(getElementsByType("player")) do bindKey(player, "o", "down", showPanel) end end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), onResStart) function onPlayerJoin() bindKey(source, "o", "down", showPanel) end addEventHandler("onPlayerJoin", getRootElement(), onPlayerJoin) function cleanAll(player) for index, player in ipairs(getElementsByType("player")) do unbindKey(player, "o", "down", showPanel) end end addEventHandler("onResourceStop", getResourceRootElement(getThisResource()), cleanAll) function skin1 () setPedSkin ( source, 1 ) end addEvent("skinns1",true) addEventHandler ( "skinns1", getRootElement(), skin1 ) function skin2 () setPedSkin ( source, 303 ) end addEvent("skinns2",true) addEventHandler ( "skinns2", getRootElement(), skin2 ) veh = {} function criarxx() if veh[source] and isElement( veh[source] ) then destroyElement( veh[source] ) veh[source] = nil end local x,y,z = getElementPosition(source) veh[source] = createVehicle(562, x,y,z + 2) warpPedIntoVehicle (source,veh[source]) end addEvent("carro1",true) addEventHandler("carro1",root,criarxx) veh = {} function criarxx() if veh[source] and isElement( veh[source] ) then destroyElement( veh[source] ) veh[source] = nil end local x,y,z = getElementPosition(source) veh[source] = createVehicle(413, x,y,z + 2) warpPedIntoVehicle (source,veh[source]) end addEvent("carro2",true) addEventHandler("carro2",root,criarxx) function vida() setElementHealth(source, 100) setPedArmor(source, 100) end addEvent("vida", true) addEventHandler("vida", root, vidas) function arms () giveWeapon ( source, 31, 9999 ) giveWeapon ( source, 34, 9999 ) giveWeapon ( source, 28, 9999 ) giveWeapon ( source, 27, 9999 ) giveWeapon ( source, 24, 9999 ) giveWeapon ( source, 23, 9999 ) end addEvent("arms",true) addEventHandler ( "arms", getRootElement(), arms ) function destruircarro () destroyElement ( veh[source] ) end addEvent ("destroy", true) addEventHandler ("destroy", getRootElement(), destruircarro) client.lua painel = false function abrir () dxDrawRectangle(24, 230, 450, 280, tocolor(0, 0, 0, 190), false) dxDrawRectangle(34, 245, 210, 50, tocolor(254, 254, 254, 150), false) dxDrawRectangle(254, 245, 210, 50, tocolor(254, 254, 254, 150), false) dxDrawRectangle(34, 305, 210, 50, tocolor(254, 254, 254, 150), false) dxDrawRectangle(254, 305, 210, 50, tocolor(254, 254, 254, 150), false) dxDrawRectangle(34, 365, 210, 50, tocolor(254, 254, 254, 150), false) dxDrawRectangle(254, 365, 210, 50, tocolor(254, 254, 254, 150), false) dxDrawRectangle(34, 425, 430, 50, tocolor(181, 15, 19, 169), false) dxDrawRectangle(24, 172, 450, 48, tocolor(0, 0, 0, 190), false) dxDrawText("PAINEL EXCLUSIVO [Hawk]", 24, 172, 474, 220, tocolor(255, 255, 255, 255), 0.90, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("SKIN 1", 34, 245, 244, 295, tocolor(255, 255, 255, 255), 0.90, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("SKIN 2", 254, 245, 464, 295, tocolor(255, 255, 255, 255), 0.90, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("VEÍCULO 1", 34, 305, 244, 355, tocolor(255, 255, 255, 255), 0.90, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("VEÍCULO 2", 254, 305, 464, 355, tocolor(255, 255, 255, 255), 0.90, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("VIDA/COLETE", 34, 365, 244, 415, tocolor(255, 255, 255, 255), 0.90, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("ARMAS", 254, 365, 464, 415, tocolor(255, 255, 255, 255), 0.90, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("DESTRUIR VEÍCULO", 34, 425, 464, 475, tocolor(255, 255, 255, 255), 0.90, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("Créditos: KingBC | Role Play Brasil", 24, 485, 474, 505, tocolor(255, 255, 255, 255), 1.00, "clear", "center", "center", false, false, false, false, false) end function abrirbind() if painel == false then showCursor (true) addEventHandler ("onClientRender", root,abrir) painel = true else if painel == true then showCursor(false) removeEventHandler("onClientRender",root,abrir) painel = false end end end addEvent("STOP", true) addEventHandler("STOP", getRootElement(), abrirbind) function isCursorOnElement(x,y,w,h) local mx,my = getCursorPosition () local fullx,fully = guiGetScreenSize() cursorx,cursory = mx*fullx,my*fully if cursorx > x and cursorx < x + w and cursory > y and cursory < y + h then return true else return false end end function skin1 (_,state) if painel == true then if state == "down" then if isCursorOnElement(34, 245, 244, 295 ) then triggerServerEvent ("skinns1", localPlayer) end end end end addEventHandler ("onClientClick", root, skin1) function skin2 (_,state) if painel == true then if state == "down" then if isCursorOnElement(254, 245, 464, 295 ) then triggerServerEvent ("skinns2", localPlayer) end end end end addEventHandler ("onClientClick", root, skin2) function veiculo1 (_,state) if painel == true then if state == "down" then if isCursorOnElement(34, 305, 244, 355 ) then triggerServerEvent ("carro1", localPlayer) end end end end addEventHandler ("onClientClick", root, veiculo1) function veiculo2 (_,state) if painel == true then if state == "down" then if isCursorOnElement(254, 305, 464, 355 ) then triggerServerEvent ("carro2", localPlayer) end end end end addEventHandler ("onClientClick", root, veiculo2) function vidas(_,state) if painel == true then if state == "down" then if isCursorOnElement (34, 365, 244, 415) then triggerServerEvent ("vida", getLocalPlayer()) end end end end addEventHandler ("onClientClick", root, vidas) function arms (_,state) if painel == true then if state == "down" then if isCursorOnElement(254, 365, 464, 415 ) then triggerServerEvent ("arms", localPlayer) end end end end addEventHandler ("onClientClick", root, arms) function destroy (_,state) if painel == true then if ( isCursorOnElement (34, 425, 464, 475) ) then --- destruir triggerServerEvent ("destroy", localPlayer) end end end addEventHandler ("onClientClick", root, destroy)
  18. Hello, i have been wondering how can i write a script that is displaying a login panel after downloaded all resources. Can you give me some tips how to do that? Thanks!
  19. Guys, I am setting up an RPG server, but we are having difficulty with GM Play, it creates the car spines, I already tried to disable it in meta.xml, but it continues, when I delete list of cars in broph.lua and start the server, the map does not load. Does anyone know how I can solve or has rpg folder to download?
  20. Hola a todos, mi nombre es Lautaro Rojas, tuve 3 servidores, y la verdad ya no me motiva "demasiado" seguir haciéndolos, por lo tanto, me ofrezco a ayudar a los que en serio quieran llegar lejos con su proyecto. Obviamente, esto no es gratis, pero los precios son MUY accesibles. Mi servicio: -NO voy a hacer servidores desde 0, aclaro esto porque hay gente que me lo ha pedido, y no. -Atención 24/7, puesto que estoy de vacaciones hasta marzo. -Conmigo no tendrás ningún tipo de problema, tengo experiencia hace años en scripting. Por motivos de privacidad y seguridad, no dejaré métodos de comunicación aquí, si estas interesado, responde a este topic, y me pondré en contacto contigo, muchas gracias por el espacio.
  21. Olá tudo bem? Bom estou fazendo um script de rouba o banco, mas queria que o roubo so acontecesse se tive 5 PM on, como passo para verificar quantos players tem do time PM? Se tive 5 PM on o roubo vai continua, agora se não tive o player não vai pode continua o roubo.
  22. Queria saber como eu setar a mark q eu criei em outra dimensão. parte do codigo: veh = {} addCommandHandler( "auto" , function (source) if isElementWithinMarker(source, MarkC) then setElementDimension ( source, 5 ) destroyElement(source, MarkC) veh[source] = createVehicle(546, 2415.14673, 89.43729, 26.47131) Mark1 = createMarker(2372.47876, 91.65331, 26.48655, "cylinder",2,255,0,0,180) warpPedIntoVehicle(source, veh[source]) else end end)
  23. BlackWhite

    Acil Etkinlik

    BEYLER SERVERIMA ETKİNLİK (EVENT) LAZIM.YAPABİLEN ARLADAŞLAR VARSA YAZSIN.YADA ELİNİZDE GÜZEL EVENTLER VARSA SATIN ALINIR.
  24. Boa Tarde queria saber como devo fazer para tirar um bug, o bug é o seguinte quando o jogador pula do veiculo (sai) que esta pegando fogo ou prestes a explodir com ele em movimento o player morre junto com a explosão do carro estou tentando entender como faço para tirar isso devo usar o onVehicleStartExit e o que eu faço na função?
  25. http://prntscr.com/iaz934 Queria saber como faz um texto assim em cima das coisas, EX:Em cima de markers, e nos pickup.
×
×
  • Create New...