Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Castillo

    Bug..?

    Yes, it seems to be a bug if you are really far from the map bounds. Report it at http://bugs.mtasa.com/.
  2. Si no me equivoco, usar OOP y el metodo que ya estabamos usando, es lo mismo, pero mas rapido de escribir para algunos, y tambien hay gente que esta acostumbrada a usar OOP.
  3. I don't understand why are you using: isPlayerHudComponentVisible and setPlayerHudComponentVisible.
  4. Castillo

    Fuck DDoS

    You mean that your server is getting DDosed? if so, then that's not something related to MTA itself, if you get it way too often, you should consider getting a DDos-protected server.
  5. Castillo

    scoreboard

    Well, you'll have to resize it until it fits correctly.
  6. missionMarker = createMarker ( -1305.2, -120.3, 13.4, "cylinder", 2, 0, 255, 255, 170 ) function createMissionMarker() missionBlip = createBlipAttachedTo(missionMarker,19) outputChatBox( "[Plane Mission] Älä vielä mene lentokone missionille. se on kesken", source, 0, 255, 255 ) end addEventHandler("onResourceStart", resourceRoot, createMissionMarker) function MarkerHit( hitElement, matchingDimension ) local plane = createVehicle ( 519, 70.21049, -233.00739, 2.33665 ) warpPedIntoVehicle ( 'hitElement, plane ) outputChatBox( "[Plane Mission] Test", source, 0, 255, 255 ) end addEventHandler("onMarkerHit", missionMarker, MarkerHit) You got a typo there, remove the ' before hitElement.
  7. What do you mean by "crash the resource"? post the new code.
  8. warpPedIntoVehicle ( source, plane ) You are trying to warp the marker to the vehicle. Replace 'source' with 'hitElement'.
  9. Any errors in debugscript?
  10. Castillo

    scoreboard

    In dxDrawImage: 16 and 11 are the width and height.
  11. Castillo

    scoreboard

    Try this: setElementData ( killer, "Rank", ":".. getResourceName ( getThisResource ( ) ) .."/ranks/first.png" )
  12. Well, you could use element data to set it, and then loop all the players and see if any of them has that element data. getElementsByType getElementData http://www.lua.org/pil/4.3.4.html
  13. Castillo

    scoreboard

    But, did you edit the scoreboard script to use your rank column?
  14. Do you mean something like these? https://community.multitheftauto.com/in ... ils&id=280 https://community.multitheftauto.com/in ... ls&id=1249 And if you want to make your own: addCommandHandler table.concat outputChatBox
  15. Castillo

    scoreboard

    You must edit the scoreboard resource to support images, if you search the forums, there are tons of topics related to this.
  16. If you have a valid report against me, send it to one of the forum administrators, this topic is to report community resources. By the way, I'm not the only moderator if you haven't noticed.
  17. Castillo

    bone_attach

    I also had this problem, then someone told me how to fix it, this is the code: if (not tonumber(tostring(objx)) or not tonumber(tostring(objy)) or not tonumber(tostring(objz))) then return end if (not tonumber(tostring(offrx)) or not tonumber(tostring(offry)) or not tonumber(tostring(offrz))) then return end
  18. The code is in the google code link.
  19. Crea una tabla y luego utiliza: local index = math.random ( #tabla ) Para obtener un index aleatorio.
  20. Ah, puede ser que el userpanel cambiase el volumen de todos los demas sonidos. De nada.
  21. Fijate en la consola del cliente ( F8 ), a ver si sale algun error de audio.
  22. Do you mean that pickups aren't visible if you are outside of GTA map bounds? could be a MTA bug, never seen it before though.
  23. Castillo

    EventHandler

    I'm not sure if they use memory or something, but if you think they do, then you could just remove the event before destroying the element.
  24. First, you would need to create a marker, for that, you use: createMarker Then, you can either make it server side or client side, if you use server-side markers, you must use the event: onMarkerHit but, if you use it client side, then the event would be: onClientMarkerHit And for the car spawning action, well, you could either use the event onClientKey ( could be the best choice ), or you could use bindKey.
×
×
  • Create New...