Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Debe ser por el tipo de codificacion, tiene que ser "UTF-8 without BOM".
  2. dxDrawText("DevWorld MTA Project", width - 350,80, width-200, 30, tocolor(255, 255, 255, 200 * BGAlpha), 0.7, "bankgothic", "center", [color=#FF0000]"center"[/color], false, false, false)
  3. What? I told you to replace "middle" with "center".
  4. local ProbocaTimer = setTimer ( function ( ) if ( Turf1MinutosPro ~= 10 ) then triggerClientEvent ( thePlayer, "Probocacion", thePlayer, Turf1MinutosPro ) Turf1MinutosPro = ( Turf1MinutosPro + 1 ) else killTimer ( ProbocaTimer ) setRadarAreaFlashing ( Turfs1, true ) end end ,60000, 10 )
  5. Replace "middle" with "center". Next time check the valid alignments at the wiki page.
  6. Any debugscript error? /debugscript 3 in game.
  7. Te dejo el link del que yo uso: http://www.mediafire.com/?5et60em7mog3yms
  8. Podes usar la funcion: getTimerDetails para saber cuanto tiempo falta.
  9. I wasn't offering myself to script for you, I'm too busy right now.
  10. Castillo

    how

    You're welcome.
  11. Castillo

    how

    local thePickups = { { 1236.14709, -1326.85632, 13.76983, "Hello World!" } } function createPickups ( ) for i, n in pairs ( thePickups ) do local infopointpickup = createPickup ( n [ 1 ], n [ 2 ], n [ 3 ], 3, 1239, 0.1 ) if ( infopointpickup ) then setElementData ( infopointpickup, "text", n [ 4 ] ) end end end addEventHandler ( "onResourceStart", resourceRoot, createPickups ) Then you can use getElementData to get the text of the pickup.
  12. Castillo

    how

    local thePickups = { { 1236.14709, -1326.85632, 13.76983 } } function createPickups ( ) for i, n in pairs ( thePickups ) do infopointpickup = createPickup ( n [ 1 ], n [ 2 ], n [ 3 ], 3, 1239, 0.1 ) end end addEventHandler ( "onResourceStart", resourceRoot, createPickups ) You we're using a STRING instead of 3 values: X, Y, Z.
  13. I'm currently not accepting any scripting job, got too much to do.
  14. I doubt someone will do it for that price.
  15. Would help if you would specify what do you exactly need to be done.
  16. Well, I don't want to sound rude, but this looks like CIT's multi-language chat ( the GUI is almost the same if I remember well ).
  17. function Window ( ) if ( guiGetVisible ( myWindow ) == true ) then guiSetVisible ( myWindow, false ) showCursor ( false ) else guiSetVisible ( myWindow, true ) showCursor ( true ) end end myWindow = guiCreateWindow ( 0.16, 0.0, .7, .7, "Taxi locations.", true ) guiSetVisible ( myWindow, false ) -- Hide the window after create. local tabPanel = guiCreateTabPanel ( 0, 0.1, 1, 1, true, myWindow ) local Teleports = guiCreateTab( "Taxi to:", tabPanel ) --GUI Buttons LSAirport = guiCreateButton( 0.03, 0.01, 0.18, 0.12, "LS airport", true, Teleports ) guiSetFont ( LSAirport, "default-bold-small" ) LVAirport = guiCreateButton( 0.03, 0.13, 0.18, 0.12, "LV airport", true, Teleports ) guiSetFont ( LVAirport, "default-bold-small" ) AbandedAirstrip = guiCreateButton( 0.03, 0.25, 0.18, 0.12, "Desert Airstrip", true, Teleports ) guiSetFont ( AbandedAirstrip, "default-bold-small" ) SFAirport = guiCreateButton( 0.03, 0.37, 0.18, 0.12, "SF airport", true, Teleports ) guiSetFont ( SFAirport, "default-bold-small" ) MountChiliad = guiCreateButton( 0.03, 0.49, 0.18, 0.12, "Mount Chiliad", true, Teleports ) guiSetFont ( MountChiliad, "default-bold-small" ) Spawn = guiCreateButton( 0.03, 0.61, 0.18, 0.12, "Spawn", true, Teleports ) guiSetFont ( Spawn, "default-bold-small" ) Ottos = guiCreateButton( 0.4, 0.01, 0.18, 0.12, "Otto's Carros", true, Teleports ) guiSetFont ( Ottos, "default-bold-small" ) Train = guiCreateButton( 0.4, 0.13, 0.18, 0.12, "Train station", true, Teleports ) guiSetFont ( Train, "default-bold-small" ) BigEar = guiCreateButton( 0.4, 0.25, 0.18, 0.12, "Big Ear", true, Teleports ) guiSetFont ( BigEar, "default-bold-small" ) BlueBerry = guiCreateButton( 0.4, 0.37, 0.18, 0.12, "BlueBerry Acres", true, Teleports ) guiSetFont ( BlueBerry, "default-bold-small" ) Heli = guiCreateButton( 0.4, 0.49, 0.18, 0.12, "Heli Pad", true, Teleports ) guiSetFont ( Heli, "default-bold-small" ) Grove = guiCreateButton( 0.4, 0.61, 0.18, 0.12, "Grove Street", true, Teleports ) guiSetFont ( Grove, "default-bold-small" ) Dam = guiCreateButton( 0.77, 0.01, 0.18, 0.12, "Sherman Dam", true, Teleports ) guiSetFont ( Dam, "default-bold-small" ) BackBeyond = guiCreateButton( 0.77, 0.13, 0.18, 0.12, "Back O Beyond", true, Teleports ) guiSetFont ( BackBeyond, "default-bold-small" ) Quarry = guiCreateButton( 0.77, 0.25, 0.18, 0.12, "Quarry", true, Teleports ) guiSetFont ( Quarry, "default-bold-small" ) Bayside = guiCreateButton( 0.77, 0.37, 0.18, 0.12, "Bayside", true, Teleports ) guiSetFont ( Bayside, "default-bold-small" ) Pecker = guiCreateButton( 0.77, 0.49, 0.18, 0.12, "Las Payasadas", true, Teleports ) guiSetFont ( Pecker, "default-bold-small" ) Bridge = guiCreateButton( 0.77, 0.61, 0.18, 0.12, "Bridge Facts", true, Teleports ) guiSetFont ( Bridge, "default-bold-small" ) Close = guiCreateButton( -0.08, 0.94, 1.1, 0.063, "Close 'F4'", true, Teleports ) guiSetFont ( Close, "default-bold-small" ) bindKey ( "F4", "down", Window ) guiSetAlpha ( myWindow, 1 ) guiWindowSetSizable ( myWindow, false ) Info= guiCreateLabel(0.61,0.9333,0.6025,0.1267,"Press F4 for a taxi",true) guiSetFont ( Info, "clear-normal" ) guiSetFont ( Info, "sa-header" ) guiLabelSetColor ( Info, 000, 000, 000 ) guiSetAlpha ( Info, 0.2222 ) --Create Labels local One = guiCreateLabel(0.09,0.78,0.94,0.2,"Click - Close 'F4'- To close.",true,Teleports) guiLabelSetColor ( One, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) guiSetFont ( One, "sa-header" ) --Label Color function changeLabelColor ( ) guiLabelSetColor ( One, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) end setTimer ( changeLabelColor, 1000, 0 ) --Close addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == Close) then guiSetVisible( myWindow, false ) showCursor( false ) end end ) --Teleports addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == MountChiliad) then local player = getLocalPlayer() setElementPosition (player , -2325.7409667969, -1627.6766357422, 483.1091003418 ) end end ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == LSAirport) then local player = getLocalPlayer() setElementPosition (player , 1993.8118896484, -2446.2619628906, 12.951565742493 ) end end ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == LVAirport) then local player = getLocalPlayer() setElementPosition (player , 1523.9138183594, 1527.1204833984, 10.2602405548 ) end end ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == AbandedAirstrip) then local player = getLocalPlayer() setElementPosition (player , 405.55480957031, 2537.8181152344, 15.9504671096 ) end end ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == SFAirport) then local player = getLocalPlayer() setElementPosition (player , -1223.4442138672, 43.506820678711, 13.541401863098 ) end end ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == Spawn) then local player = getLocalPlayer() setElementPosition (player , 584.22082519531, -1991.6666259766, 1.4216117858887 ) end end ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == Ottos) then local player = getLocalPlayer() setElementPosition (player , -1643.1949462891, 1212.7462158203, 6.5843458175659 ) end end ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == Train) then local player = getLocalPlayer() setElementPosition (player , 1434.11389, 2654.20752, 11.39261 ) end end ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == BigEar) then local player = getLocalPlayer() setElementPosition (player , -294.39447021484, 1538.9415283203, 74.965629577637 ) end end ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == BlueBerry) then local player = getLocalPlayer() setElementPosition (player , -3.3661103248596, 36.78341293335, 2.5212655067444 ) end end ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == Heli) then local player = getLocalPlayer() setElementPosition (player , 1535.7916259766, -1353.4775390625, 328.86157226563 ) end end ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == Grove) then local player = getLocalPlayer() setElementPosition (player , 2495.3193359375, -1690.1716308594, 14.765625 ) end end ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == Dam) then local player = getLocalPlayer() setElementPosition (player , -887.02734375, 2000.9217529297, 60.654315948486 ) end end ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == BackBeyond) then local player = getLocalPlayer() setElementPosition (player , -938.93298339844, -2346.8010253906, 59.003288269043 ) end end ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == Quarry) then
  18. Pero eso es el tipo de marker, no el ID.
  19. El tipo de marker esta mal, porque pusistes: "cylinder3" ? es "cylinder".
  20. Que??????????????? 'root' es lo mismo que getRootElement ( ) salvo que mas corto.
×
×
  • Create New...