-
Posts
186 -
Joined
Everything posted by RenanPG
-
Use fetching, gets better performance.
-
This is the cheapest brazilian host that i know, for this price only in openvz(overselling): http://www.host1plus.com/vps-hosting/ PS. Here is the Portuguese section.
-
[SOLUTION] Dns and IP - MTA:SA 1.4.1
RenanPG replied to #RooTs's topic in Site/Forum/Discord/Mantis/Wiki related
Great idea. I hope we can use in future versions. -
This events: addEventHandler ( "onColShapeHit", Col, function ) addEventHandler ( "onColShapeLeave", Col, function ) https://wiki.multitheftauto.com/wiki/OnColShapeHit https://wiki.multitheftauto.com/wiki/OnColShapeLeave
-
function getPointFromDistanceRotation(x, y, dist, angle) local a = math.rad(90 - angle); local dx = math.cos(a) * dist; local dy = math.sin(a) * dist; return x+dx, y+dy; end Do you put this in your code?
-
It wouldn't make a difference. Explain why this is please? I run my tables all with a , at the end and it just works fine? Have no difference, but logically the last value don't need comma.
-
addEventHandler("onClientRender", root, function() local height = 3 local weight = 20 local veh = getPedOccupiedVehicle(localPlayer) local x, y, z = getElementPosition(veh) local rx, ry, rz = getElementRotation(veh) local ax, ay = getPointFromDistanceRotation(x, y, weight, (-rz) - 180) setCameraMatrix(ax, ay , z+height, x, y, z) end) function getPointFromDistanceRotation(x, y, dist, angle) local a = math.rad(90 - angle); local dx = math.cos(a) * dist; local dy = math.sin(a) * dist; return x+dx, y+dy; end i didn't tested, adjust
-
local ads = { 'AD1', 'AD2', 'AD3', 'AD4', 'AD5' -- Don't forget to keep the last one without comma. } addEventHandler("onPlayerChat", root, function(msg) for index, v in ipairs(ads) do if string.find(msg,v) then cancelEvent() banPlayer ( source, false, false, true ) end end end )
-
Como utilizar o httpdownloadurl
RenanPG replied to imCEASER's topic in Ajudas relacionadas ao MTA:SA (Cliente/Servidor)
Para isso, é melhor usar uma hospedagem, Dropbox só consegue faze de arquivos individuais. http://www.hostinger.com.br/hospedagem-web, e os Resources coloque via FTP na pasta http do host, dai todos os resources são baixados por um único endereço. -
What code do you use? ANSI or UTF
-
Try this: Use server-side function ban() local accname = getAccountName(source) if ( accname == "Name Here" ) then banPlayer(source) end end addEventHandler("onPlayerLogin", root, ban)
-
Just use the color argument as has beend said before.. Arguments of dxDrawText. https://wiki.multitheftauto.com/wiki/DxDrawText
-
Show us your flags script too.
-
I'm talking with him on skype, the problem is when will be stored.
-
it's not what he want, he wants to know when the data must be stored. In that case when admins set ( VIP ) for certain account.
-
Try to create a function to get the time when admins give " VIP " for certain player. And send the time to the VIP panel using: setAccountData( )
-
Thanks man, it's exactly i needed.
-
hi everybody, i am creating a login using dx functions, but i have no idea how to make an EditBox in dx. I know need a table to store the keys pressed using this event: addEventHandler("onClientCharacter", getRootElement(), getCharacter)
-
As far i know isn't possible compile txds, dffs, etc. And putting "Cache" in false, players will download eveything again.
-
This can help you. addEventHandler("onClientGUIClick", root, function() if ( source == button ) then ------- exemple end end )
-
try this, but i haven't tested. test = createPickup (1660, 296, 21, 3, 1247, 6000 ) function destroy(player) destroyElement(test) setPlayerWantedLevel(player,getPlayerWantedLevel(player)-1) function delay() test = createPickup (1660, 296, 21, 3, 1247, 6000 ) end setTimer ( delay, 6000, 1 ) end addEventHandler("onPickupHit",test,destroy)
-
Problably the flag don't have the same name "TN", of couse if you added.
-
Explain what you want, i don't understand.
-
Serverside e Clientside "partilha de funções"??
RenanPG replied to AlfaMTA's topic in Programação em Lua
triggerClientEvent Use essa função para enviar informações do server para client. https://wiki.multitheftauto.com/wiki/TriggerClientEvent -
I used to have the same problem on my blips system, using shaders u can fix it.