-
Posts
1,991 -
Joined
-
Last visited
-
Days Won
2
Everything posted by #RooTs
-
MTA:SA 1.5.1 - desempenho do servidor
#RooTs replied to #RooTs's topic in Ajudas relacionadas ao MTA:SA (Cliente/Servidor)
sem respostas ainda -
stolen code ? paste all code, please
-
you can use part of his functions the script is free and open
-
It is using the bank system? https://community.multitheftauto.com/in ... ails&id=54
-
maybe try this local veh = {} function elvehiculo(source) local x, y, z = getElementPosition(source) veh[source] = createVehicle(400, x + 2, y, z) end addCommandHandler("veh",elvehiculo) function VehicleExplode() local isCreatedByPlayer = false; for k, v in pairs( veh ) do if ( v == source ) then isCreatedByPlayer = k; break; end end if ( isCreatedByPlayer ) then setTimer ( function( vehicle, owner ) destroyElement( vehicle ) veh[owner] = nil end , 5000, 1, source, isCreatedByPlayer ) end end addEventHandler("onVehicleExplode", root, VehicleExplode)
-
use getPedAnimation -- more getElementData setElementeData
-
I did not understand, explain better.
-
that amazing. I did not know, I could report fake server. Can anybody say, what about the fake server?
-
Ahh, sim.. então tá. mandei uma PM pra você
-
Ahh, sim.. então tá. mandei uma PM pra você
-
de nada deu certo ?
-
Olha, acho que seu script está faltando a função getPlayerFromPartialName que está na WIKI.. tente isso function getPlayerFromPartialName(name) local name = name and name:gsub("#%x%x%x%x%x%x", ""):lower() or nil if name then for _, player in ipairs(getElementsByType("player")) do local name_ = getPlayerName(player):gsub("#%x%x%x%x%x%x", ""):lower() if name_:find(name, 1, true) then return player end end end end --------------------- function doesVehicleHaveDoorOpen(thePlayer, comando, nick, vehicle) if nick then if getPlayerFromPartialName ( nick ) then local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "ComandosPolicia") ) then -- Acl Pra Quem Pode Usar o Comando local player_a_ser_algemado = getPlayerFromPartialName ( nick ) local nick_do_jogador = getPlayerName ( player_a_ser_algemado ) local nick_do_policial = getPlayerName ( thePlayer ) local vehicle = getPedOccupiedVehicle(thePlayer) local isDoorAjar = false for i=0,5 do local doorState = getVehicleDoorState(vehicle, i) if doorState == 6 then isDoorAjar = true attachElements ( isDoorAjar, thePlayer, 0, 0, 2 ) end end return isDoorAjar end end end end addCommandHandler("algemar", doesVehicleHaveDoorOpen)
-
I did a script similar to this.. local posicoes = { { 816.59997558594, -7209.2998046875, 32.799999237061 }, { 707.20001220703, -7272.6000976563, 32.700000762939 }, { 710.5, -7412.8999023438, 32.799999237061 }, { 798.70001220703, -7654, 32.5 }, { 816.09997558594, -7471.3999023438, 30 }, { 812.40002441406, -7321.6000976563, 32.799999237061 }, } function PosicaoPlayer ( thePlayer, command ) local azar = math.random ( #posicoes ) local veh = getPedOccupiedVehicle(thePlayer) if (veh) then setElementPosition(veh, unpack ( posicoes [ azar ] ) ) else setElementPosition(thePlayer, unpack ( posicoes [ azar ] ) ) end outputChatBox ( "#FFFFFF[#00FF00Tele#FFFFFF] ".. getPlayerName(thePlayer) .." #FFFFFFFoi para a pista SpeedWay fazer drift! (#00FF00/drift#FFFFFF)", root, 0, 255, 0, true ) end addCommandHandler ( "drift", PosicaoPlayer )
-
try this local spawnX = math.random( #fX ) local spawnY = math.random( #fY ) local spawnZ = math.random( #fZ )
-
maybe this if getElementData(localPlayer, "VIP") or getElementData(localPlayer, "Silver") then
-
Solved
-
no work
-
someone ?
-
Problema com conexão
#RooTs replied to Novato09's topic in Ajudas relacionadas ao MTA:SA (Cliente/Servidor)
@Novato09, também acredito que seja o MTA, por algumas vezes o CMD do meu servidor na VPS está fechando sozinho pode ser algum bug no meu server, mais também pode ser o MTA -
Problema com conexão
#RooTs replied to Novato09's topic in Ajudas relacionadas ao MTA:SA (Cliente/Servidor)
Qual GameMode é seu servidor? Play, RAGE, RPG ou DayZ ? estou passando +/- pelo mesmo problema. no entanto é que. estou atualizando todos os meus scripts e senti uma certa melhora nessa minha atualização.. -
hello guys, I'm new with the "dxDrawImage Section". and I am not able to do the calculation, to eat the image from top to bottom Solved please. keep function roundValue(screenWidth - 30), roundValue(screenHeight - 270) local valor = getVehicleNitroLevel(vehicle) dxDrawImageSection(roundValue(screenWidth - 30), roundValue(screenHeight - 270), 26, valor*-1, 0, 0, 26, valor*-1, "image/nitrolevel.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
-
MTA:SA 1.5.1 - desempenho do servidor
#RooTs replied to #RooTs's topic in Ajudas relacionadas ao MTA:SA (Cliente/Servidor)
? -
I think it's not possible
