Jump to content

RenanPG

Members
  • Posts

    186
  • Joined

Everything posted by RenanPG

  1. Use fetching, gets better performance.
  2. 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.
  3. This events: addEventHandler ( "onColShapeHit", Col, function ) addEventHandler ( "onColShapeLeave", Col, function ) https://wiki.multitheftauto.com/wiki/OnColShapeHit https://wiki.multitheftauto.com/wiki/OnColShapeLeave
  4. 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?
  5. RenanPG

    anti-flood

    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.
  6. 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
  7. RenanPG

    anti-flood

    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 )
  8. 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.
  9. What code do you use? ANSI or UTF
  10. RenanPG

    its posible

    Try this: Use server-side function ban() local accname = getAccountName(source) if ( accname == "Name Here" ) then banPlayer(source) end end addEventHandler("onPlayerLogin", root, ban)
  11. Just use the color argument as has beend said before.. Arguments of dxDrawText. https://wiki.multitheftauto.com/wiki/DxDrawText
  12. Show us your flags script too.
  13. I'm talking with him on skype, the problem is when will be stored.
  14. 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.
  15. RenanPG

    help please

    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( )
  16. RenanPG

    [help] Edit

    Thanks man, it's exactly i needed.
  17. RenanPG

    [help] Edit

    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)
  18. As far i know isn't possible compile txds, dffs, etc. And putting "Cache" in false, players will download eveything again.
  19. This can help you. addEventHandler("onClientGUIClick", root, function() if ( source == button ) then ------- exemple end end )
  20. 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)
  21. Problably the flag don't have the same name "TN", of couse if you added.
  22. Explain what you want, i don't understand.
  23. triggerClientEvent Use essa função para enviar informações do server para client. https://wiki.multitheftauto.com/wiki/TriggerClientEvent
  24. I used to have the same problem on my blips system, using shaders u can fix it.
×
×
  • Create New...