Jump to content

RenanPG

Members
  • Posts

    186
  • Joined

Everything posted by RenanPG

  1. He posted it first on community. There is nothing to do...
  2. RenanPG

    Help!

    kickPlayer doesn't need admin rights. Always see wiki, I'm not offending you. "responsiblePlayer: The player that is responsible for the event. Note: If left out as in the second syntax, responsible player for the kick will be "Console" (Maximum 30 characters if using a string)." Community. In that case the responsible is Console, probably need ACL. I didn't test.
  3. RenanPG

    Help!

    Don't forget to give admin rights on ACL.
  4. 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
  5. 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.
  6. RenanPG

    Question

    SQLite or mySQL, XML just if it's a small database.
  7. To get the team name use: local teamName = getTeamName(getPlayerTeam(player)) You used just getTeamName, you need to specify the team element.
  8. --// Client addEventHandler("onClientPlayerVehicleExit", getRootElement(), function() cancelEvent() end)
  9. #Samy: Nice very job. Do you speak my language?
  10. Discussing for a simple thing like this ...
  11. 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 )
  12. Use fetching, gets better performance.
  13. 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
  14. 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.
  15. This events: addEventHandler ( "onColShapeHit", Col, function ) addEventHandler ( "onColShapeLeave", Col, function ) https://wiki.multitheftauto.com/wiki/OnColShapeHit https://wiki.multitheftauto.com/wiki/OnColShapeLeave
  16. 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?
  17. 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.
  18. 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
  19. 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 )
  20. 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.
  21. Nice job, I'm proud to have participated.
  22. What code do you use? ANSI or UTF
×
×
  • Create New...