Jump to content

Cadu12

Retired Staff
  • Posts

    827
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Cadu12

  1. addEventHandler("onPlayerDamage ",root, ...) You have one space in event.
  2. Cadu12

    ACL export

    You can't make like this. Only server/owner can make admin rights for your resource.
  3. https://wiki.multitheftauto.com/wiki/Ser ... nistrators
  4. getimagesize imagecreatefromjpeg or imagecreatefrompng imagejpeg or imagepng imagedestroy header Click these functions.
  5. We don't support requests, you have to make script or buy script.
  6. Are you using XML for save/load system? If so, thats bad idea, it will get DDoS/Crash.
  7. Here is Lua tutorials: viewtopic.php?f=148&t=40809
  8. When you create element for client and send to server-side, it wont work.
  9. Make your own character system, and account system. Use SQLite or MySQL, get/setAccountData is not recommend for RPG/RP
  10. There is missing, Shift + TAB to remove 4 spaces, or \tab .
  11. Cadu12

    Destructionderby

    Not really, your check will if variable is not empty and/or true. It's not same your.
  12. Cadu12

    Destructionderby

    function distanceFromPlayerToCheckpoint ( player, i ) local checkpoint = g_Checkpoints [ i ] if ( checkpoint ~= nil ) then local x, y, z = getElementPosition ( player ) return getDistanceBetweenPoints3D ( x, y, z, unpack ( checkpoint.position ) ) end end
  13. Cadu12

    Ports!!!

    Enter with your IP, or use /connect yourip ingame.
  14. Try this: function getNearestVeicle(thePlayer) local x, y, z = getElementPosition( thePlayer ) local prevDistance local nearestVehicle for i, v in ipairs( getElementsByType( "vehicle" ) ) do local distance = getDistanceBetweenPoints3D( x, y, z, getElementPosition( v ) ) if distance <= ( prevDistance or distance + 1 ) then prevDistance = distance nearestVehicle = v setElementHealth ( v, 800 ) end end return nearestVehicle or false end addCommandHandler("repaircar", getNearestVeicle) csiguusz: You're wrong, this function isnt only for client-side, thats for both.
  15. You can't use SQLite with 2 or more servers. Only MySQL can do.
  16. Não faz copy-paste, ou vai dar error pra você. Primeiro, você tem que apernder Lua, depois vc faze qualquer coisas. Aqui segue 3 links: http://www.lua.org/manual/5.1/pt/manual.html http://www.lua.org/doc/wjogos04.pdf https://wiki.multitheftauto.com/wiki/PT- ... _Scripting
  17. theElement: Player element if chatbox output was done via say, teamsay or me. Resource if it was done via outputChatBox. You can use getResourceInfo with that.
  18. http://www.lt-mta.net/ - You can download dayz gamemode
  19. Gaming PC is too much costs than mine.
×
×
  • Create New...