Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Castillo

    MTA 1.1 Chat

    diego, the "Z" key is not part of the "voice" resource, I don't have it started and still works.
  2. Why don't you use dxDrawImage for the rest of the speedometer too? instead of guiCreateStaticImage.
  3. Post your code here.
  4. dxDrawImage last argument is "postGUI", set it to true.
  5. You are just checking if these teams exists, not if the player team is one of these. function gateOpen(hitElement) if (getElementType(hitElement) == "player") then hitPlayer = hitElement elseif (getElementType(hitElement) == "vehicle") then hitPlayer = getVehicleController(hitElement) end local playerTeam = getPlayerTeam(hitPlayer) if (not playerTeam) then return end local teamName = getTeamName(playerTeam) if (teamName == "Subway Clan(2)" or teamName == "Beginners(1)") then moveObject ( gate, 1000, 808, -1342, 7 ) setTimer( moveObject, 3000, 1, gate, 1000, 808, -1342, 15) end end addEventHandler("onMarkerHit", marker1, gateOpen) addEventHandler("onMarkerHit", marker2, gateOpen)
  6. Castillo

    Tonumber.

    kmh = math.floor(tonumber(kmh))
  7. You're welcome .
  8. Castillo

    Tonumber.

    You can use math.floor, but that will make it: 3 KM/h.
  9. -- client side: addEventHandler("onClientKey",root, function (key, pressed) if (key == getKeyBoundToCommand("screenshot") and pressed) then triggerServerEvent("onPlayerTookScreenshot",localPlayer) end end) -- server side: addEvent("onPlayerTookScreenshot",true) addEventHandler("onPlayerTookScreenshot",root, function () local chatterName = getPlayerName ( source ) outputChatBox ( chatterName.." has made a screenshot.", true ) end)
  10. What's your f-*** problem? you have made 5 posts in 3 minutes! that's SPAM.
  11. What are you talking about...? could you at least try to do it yourself before posting?
  12. You're welcome.
  13. Yes, I forgot about the rotation. P.S: myonlake, you put getElementRotation before check if the vehicle exists. function turn(thePlayer) local vehicle = getPedOccupiedVehicle(thePlayer) if (not vehicle) then return end local speedx, speedy, speedz = getElementVelocity(vehicle) local rX, rY, rZ = getVehicleRotation(vehicle) local actualspeed = (speedx^2 + speedy^2 + speedz^2)^(0.5) local kmh = actualspeed * 180 local mph = actualspeed * 111.847 setElementRotation(vehicle, rX, rY, rZ + 180) outputChatBox("You turned your vehicle with " .. tostring(kph) .. " km/h | " .. tostring(mph) .. " mph", thePlayer) end function bindTheKey() for index, player in pairs(getElementsByType("player")) do bindKey(player, "lctrl", "down", turn) outputChatBox("#00FF00You can now press #0000FF'left ctrl' #00FF00in vehicle to turn for 180 degrees!", player, 255, 255, 255, true) end end addEventHandler("onResourceStart", resourceRoot, bindTheKey) addEventHandler("onPlayerJoin", root, function() bindKey(source, "lctrl", "down", turn) end)
  14. Use dxDrawText to draw the FPS frames.
  15. Daniel, and what has that to do with this? AeroXBird posted a tutorial for how to repeal the attacks (or something similar).
  16. Castillo

    Trabajos

    BlackStorm, el j-jobs debe tener alguna documentacion de como funciona.
  17. Castillo

    DDose???

    DDoS = Distributed Denial of Service (DDoS) A DDoS can make the server lag like hell, ex: players with 3000+ ping, and after some seconds, they'll eventually time out. You get DDoS when your server is either hated by a teenager kid or just because someone is jeleous of it.
  18. "ajax" is a resource that comes with the MTA, it's used for web related stuff.
  19. Castillo

    Trabajos

    Talvez esto te ayude: https://community.multitheftauto.com/index.php?p= ... ls&id=2484
  20. No podes desbanearte del serial. Y no te pueden banear del "MTA".
  21. Again my AFK script: https://community.multitheftauto.com/index.php?p= ... ls&id=3275 https://community.multitheftauto.com/index.php?p= ... ls&id=3276
  22. That means you have duplicated resources, remove all but one of them, is that hard to understand?
  23. Registered, rated, I really hope the same Chase.
  24. Castillo

    need help

    Indeed, the comma . You're welcome.
  25. Castillo

    need help

    It was not a bad argument, I'm pretty sure, copy my code again, I found a error.
×
×
  • Create New...