neves768

Members
  • Content Count

    93
  • Joined

  • Last visited

Community Reputation

0 Neutral

2 Followers

About neves768

  • Rank
    Punk-@ss B*tch
  • Birthday 27/11/1999

Details

  • Gang
    Developers
  • Location
    Natal - RN, Brazil
  • Occupation
    C# Programmer

Recent Profile Visitors

1,122 profile views
  1. Poderia elaborar mais? Você criou um server web com mysql/mariadb? Eu recomendo o uso do Adminer por ser mais simples de implementar (só jogar o arquivo no ftp) https://www.adminer.org/ Gostaria de lembra-lo também que você está no fórum do MTA:SA.
  2. It's even better If you compare to 2018 recap. You will see similar positive results =)
  3. Merry xmas, everyone! What a year to MTA! Great numbers =) *coff* that recap was better than yt rewind *coff coff*
  4. neves768

    Sound issue

    //Fixed After so many attempts, I've figured out the solution after posting this issue.
  5. neves768

    Sound issue

    I can't hear MTA:SA audio since 2017 (I think it started on 1.5.4). I've been searching for solutions, but i couldn't find anything that really could solve it. O.S: Windows 10 x64
  6. It is beautiful and works with power and some charm (nice UI). AAAND guess what the best thing is? It's Open Source! Come with us to contribute to a better community:)
  7. Questions 1 - I think that i can't move the MTA:SA to my USB flash drive, because MTA:SA uses Windows Registry, but it can be possible? 2 - Can i install MTA:SA Client at Ubuntu with Wine or it has a linux version that i don't know? I'm trying to install MTA:SA on a non-Administrator account at my Academy's PC to develop and test my scripts.
  8. Se você deseja a função para apenas um grupo específico, então aqui está: -- CLIENT-SIDE optionsTable = {} optionsTable[1] = {x=1583.68408, y=1450.32666, z=9.83114} -- LV optionsTable[2] = {x=348.91159, y=2539.05054, z=15.74509} -- VM optionsTable[3] = {x=-1460.63989, y=-152.66759, z=13.14844} -- SF optionsTable[4] = {x=1562.28149, y=-2414.01587, z=12.55469} -- LS lastTarget = false deliveryPrice = false deliveryMarker = false deliveryBlip = false team = "Police" function onPlaneEnter() local daVehicle = getPedOccupiedVehicle(localPlayer) if getTeamName(getPlayerTeam(localPlayer)) == team then if daVehicle and getVehicleType(daVehicle) == "Plane" then if isElement(deliveryMarker) then destroyElement(deliveryMarker) deliveryMarker = false end if isElement(deliveryBlip) then destroyElement(deliveryBlip) deliveryBlip = false end local optionsNew = deepcopy(optionsTable) if lastTarget then table.remove(optionsNew, lastTarget) end local randomNumber = math.random(1,#optionsNew) lastTarget = randomNumber local x = optionsNew[randomNumber]['x'] local y = optionsNew[randomNumber]['y'] local z = optionsNew[randomNumber]['z'] exports.saptcommands:sendClientMessage("*Pilot Delivery* Your load is ready to be delivered. ", 0, 255, 0) deliveryMarker = createMarker(x,y,z,"cylinder",5) local px, py = getElementPosition(localPlayer) deliveryPrice = getDistanceBetweenPoints2D(x, y, px, py) * 5 deliveryBlip = createBlipAttachedTo(deliveryMarker,5) addEventHandler("onClientMarkerHit",deliveryMarker,onDeliveryHit) addEventHandler("onClientVehicleExit",daVehicle ,onPlaneExit) addEventHandler("onClientVehicleExplode",daVehicle ,onPlaneExit) addEventHandler("onPlayerWasted", localPlayer, deleteMission) end end end addEventHandler("onClientPlayerVehicleEnter",localPlayer,onPlaneEnter) function onDeliveryHit(hitPlayer, matchingDimension) if hitPlayer == localPlayer then if getPedOccupiedVehicle(hitPlayer) and matchingDimension and isVehicleOnGround(getPedOccupiedVehicle(hitPlayer)) and getVehicleType(getPedOccupiedVehicle(hitPlayer)) == "Plane" then exports.saptcommands:sendClientMessage("*Pilot Delivery* You've delivered it successfully, great job!", 50, 255, 50) exports.saptcommands:giveMoney(localPlayer, deliveryPrice) destroyElement(deliveryMarker) destroyElement(deliveryBlip) deliveryMarker = false deliveryBlip = false deliveryPrice = false onPlaneEnter() end end end function onPlaneExit() removeEventHandler("onClientVehicleExit",localPlayer,onPlaneExit) deleteMission() end function deleteMission() if deliveryMarker then exports.saptcommands:sendClientMessage("Pilot Delivery* The delivery failed. Keep going, you were going great!", 0, 255, 0) destroyElement(deliveryMarker) destroyElement(deliveryBlip) deliveryMarker = false deliveryBlip = false deliveryPrice = false end end addEventHandler("onClientPlayerSpawn", localPlayer, deleteMission) function deepcopy(object) local lookup_table = {} local function _copy(object) if type(object) ~= "table" then return object elseif lookup_table[object] then return lookup_table[object] end local new_table = {} lookup_table[object] = new_table for index, value in pairs(object) do new_table[_copy(index)] = _copy(value) end return setmetatable(new_table, getmetatable(object)) end return _copy(object) end A mágica está em: team = "Police" -- Nome do grupo function onPlaneEnter() if getTeamName(getPlayerTeam(localPlayer)) == team then -- código end end addEventHandler("onClientPlayerVehicleEnter",localPlayer,onPlaneEnter)
  9. [2016-02-03 03:04:03] [Network] InResultQueue > 200000 msgs. This is due to server overload or script freeze "This is due to server overload or script freeze"
  10. Alguém já teve o mesmo problema em https://bugs.multitheftauto.com/view.php?id=8439 Algum recurso está fazendo isto.
  11. -- Server-side local acls = {"VIP"} function CarVehiclePainelVip() local accName = getAccountName(getPlayerAccount(source)) for _, k in ipairs(acls) do if isObjectInACLGroup("user."..accName, aclGetGroup(k)) then setElementData(source,"VehiclePainel",true) end end end addEventHandler("onPlayerVehicleEnter", getRootElement(), CarVehiclePainelVip) -- Client-side if getElementData(getLocalPlayer(), "VehiclePainel") then dxDrawImage(botX+sizeX+650, 250, 49, 39, "img/icoRepair.png") end
  12. @OFF "abaixarem"? The correct is downloading or download... Idk what do you want with this word. @ON Good Great idea.
  13. Tente isto: serials = { ["9C9F3B55D9D7BB7135FF274D3BF444E4"] = true, ["1D6F76CF8D7193792D13789849498452"] = true, } function aologar() local serial = serials[getPlayerSerial(source)] if serial == true then setElementData(source, "MAX_Slots", -1) outputChatBox(source.."; Nick:"..getPlayerName(source)) outputChatBox(tonumber(getElementData(source, "MAX_Slots"))) end end addEventHandler("onPlayerLogin",getRootElement(),aologar)
  14. serials = { {"01",2}, {"02",2} } function banotrotipo () for i , playerserial in ipairs(serials) do outputChatBox(tostring(playerserial[1])) local serialdoplayer = getPlayerSerial(source) local accountaplayer = getPlayerAccount(source) if (serialdoplayer == playerserial[1]) then if source then setElementData(source, "MAX_Slots", -1) outputChatBox(getPlayerName(source)) end end end end addEventHandler( "onPlayerLogin",getRootElement(),banotrotipo,source)
  15. #Segura ai -- Client side / Lado do cliente spawns = { {33,-2356.3515625,37.765151977539}, {-2142.9504394531,-2356.3515625,50.765151977539}, } function scriptdetest() local points2 = math.random(#spawns) for i,all in ipairs(spawns) do if all[i] == all[points2] then local x,y,z = all[1],all[2],all[3] --createVehicle(548,x,y,z,nil,nil,nil) outputChatBox(all[1]) outputChatBox("SUCESSO!") end end end addCommandHandler("eventoon",scriptdetest)