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. where is this code triggerEvent ( "showWindow", getLocalPlayer() ) post more try: triggerClientEvent (source,"hideLogin",source, username, password)
  3. ok also, you should send to the clients all the "locations" table once and not separately, it's more efficient
  4. post a screenshot of the folder where your files are
  5. i dont know why it is not working is your locations.xml in the root folder of the resource?
  6. is your xml file specified in the meta.xml?
  7. maybe giveWeapon (playerWhoUses, 3, 1, true) setPlayerNametagText (playerWhoUses, "[COP]" .. getPlayerName (playerWhoUses)) setPlayerSkin ( playerWhoUses, 280 )
  8. 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
  9. 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
  10. maybe https://wiki.multitheftauto.com/wiki/Gui ... eLoadImage
  11. function SayHello(player, command) outputChatBox("Hello Everyone") end addCommandHandler("hi", SayHello) use addCommandHandler for commands and addEventHandler for events.
  12. ok thanks i will be waiting the patch =)
  13. try <file src="xenon.mp3" type="client" />
  14. Ryder!

    Creating peds

    try this addEventHandler ( "onResourceStart", getResourceRootElement( getThisResource() ), pedLoad )
  15. 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.
  16. onPlayerInteriorWarped is an event from interiors resource: https://wiki.multitheftauto.com/index.ph ... riorWarped
  17. i enter from the outside world
  18. 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.
  19. 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
  20. Ryder!

    Few questions.

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