Jump to content

RenanPG

Members
  • Posts

    186
  • Joined

Everything posted by RenanPG

  1. RenanPG

    Help!

    Don't forget to give admin rights on ACL.
  2. I have a radar with blips support, i can give you an example just pm me. https://fbcdn-sphotos-g-a.akamaihd.net/ ... 6019_o.jpg
  3. not because dxDrawCircle will only work with Rendering dxDrawCircle make a loop with lines every frame rendering, DNL291 are right and that's why lag.
  4. RenanPG

    Question

    SQLite or mySQL, XML just if it's a small database.
  5. To get the team name use: local teamName = getTeamName(getPlayerTeam(player)) You used just getTeamName, you need to specify the team element.
  6. --// Client addEventHandler("onClientPlayerVehicleExit", getRootElement(), function() cancelEvent() end)
  7. #Samy: Nice very job. Do you speak my language?
  8. Discussing for a simple thing like this ...
  9. Because this event doesn't exist, you must use "onPlayerLogin" on server-side and trigger to client. --// Server addEventHandler("onPlayerLogin",getElementRoot(), function() triggerClientEvent(source,"onPlayerLogged",source) end ) --// Client addEvent( "onPlayerLogged", true ) addEventHandler( "onPlayerLogged", localPlayer, function() --stuff end )
  10. Use fetching, gets better performance.
  11. You make me laugh it's so hard to edit the name of author in meta.xml ? come on. As far i remember, LekRoots(Sr.Zika) created this ... http://blog.servzika.net/2014/03/hud-braun-v100.html
  12. 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.
  13. This events: addEventHandler ( "onColShapeHit", Col, function ) addEventHandler ( "onColShapeLeave", Col, function ) https://wiki.multitheftauto.com/wiki/OnColShapeHit https://wiki.multitheftauto.com/wiki/OnColShapeLeave
  14. 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?
  15. 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.
  16. 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
  17. 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 )
  18. 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.
  19. Nice job, I'm proud to have participated.
  20. What code do you use? ANSI or UTF
  21. Nenhuma empressa que vende VPS/Host de baixo custo tem proteção boa. No caso da tkshost.com até com RDP-KILL da pra derrubar, Tenso.
  22. 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)
×
×
  • Create New...