Jump to content

Ryder!

Members
  • Posts

    48
  • Joined

  • Last visited

Everything posted by Ryder!

  1. hay alguna lista por ahi de posiciones (coordenadas) utiles? por ejemplo las posiciones de las tiendas para poder ponerles iconos (blips) saludos
  2. destroyElement
  3. where is this code triggerEvent ( "showWindow", getLocalPlayer() ) post more try: triggerClientEvent (source,"hideLogin",source, username, password)
  4. ok also, you should send to the clients all the "locations" table once and not separately, it's more efficient
  5. post a screenshot of the folder where your files are
  6. i dont know why it is not working is your locations.xml in the root folder of the resource?
  7. is your xml file specified in the meta.xml?
  8. what is the error exactly?
  9. use xmlLoadFile
  10. maybe giveWeapon (playerWhoUses, 3, 1, true) setPlayerNametagText (playerWhoUses, "[COP]" .. getPlayerName (playerWhoUses)) setPlayerSkin ( playerWhoUses, 280 )
  11. thanks! now i have this error:
  12. hi, i get this error while loading mta server root@debian:/home/gtachile/mta/Publico# ./mta-server & [2] 906 root@debian:/home/gtachile/mta/Publico# ./mta-server: error while loading shared libraries: /emul/ia32-linux/lib/libpcre.so.3: file too short [2]+ Done(127) ./mta-server On debian lenny 5 64bit
  13. hi, i want to get the world position ( x,y ) when the player click somewhere inside the f11 map. this is what i have so far: function onMapShow(key, keystate) if keystate == "down" then if isPlayerMapVisible () then showCursor(true) else showCursor(false) end end end bindKey ( "F11", "down", onMapShow) function mapclick(button, state, x, y) if state == "down" then if isPlayerMapVisible () then local minX, minY, maxX, maxY = getPlayerMapBoundingBox () if x >= minX and x <= maxX then --HERE I WANT TO GET THE WORLD POSITION end end end end
  14. maybe https://wiki.multitheftauto.com/wiki/Gui ... eLoadImage
  15. function SayHello(player, command) outputChatBox("Hello Everyone") end addCommandHandler("hi", SayHello) use addCommandHandler for commands and addEventHandler for events.
  16. ok thanks i will be waiting the patch =)
  17. try <file src="xenon.mp3" type="client" />
  18. Ryder!

    Creating peds

    try this addEventHandler ( "onResourceStart", getResourceRootElement( getThisResource() ), pedLoad )
  19. onPlayerInteriorWarped This event is triggered when a player successfully warps to his destination interior. And the interior parameter is not the interior ID, it's the interior element.
  20. onPlayerInteriorWarped is an event from interiors resource: https://wiki.multitheftauto.com/index.ph ... riorWarped
  21. i enter from the outside world
  22. it's just for debugging and no im not entering the outside world, it returns always 0 when entering for example: ammu nation, caligulas casino and with every interior.
  23. function resourceStart() addEventHandler( "onPlayerInteriorWarped", getRootElement(), onInteriorEnter ) end addEventHandler( "onResourceStart", getResourceRootElement( getThisResource() ), resourceStart ) function onInteriorEnter( interior ) outputChatBox( tostring(getElementInterior( source ) ) ) --it output always 0 outputChatBox( getElementType ( interior ) ) --outputChatBox( tostring(getPlayerName( source ) ), source ) end the problem is that getElementInterior output always 0 when entering any interior =S I have only this script running and interiors. http://mta.pastebay.com/51409
  24. Ryder!

    Few questions.

    setCameraTarget( source, source )
×
×
  • Create New...