Jump to content

Alpha

Members
  • Posts

    244
  • Joined

  • Last visited

Everything posted by Alpha

  1. Alpha

    hi im new to MTA

    It's gotta suck to be you.
  2. Zango, the site is down, where are the documentation?
  3. local LSMarker = createMarker( 1686.268, -2331.469, 14.132, "cylinder", 1.5, 255, 0, 0, 100) local SFMarker = createMarker( -1422.733, -288.374, 14.478, "cylinder", 1.5, 255, 0, 0, 100) local LVMarker = createMarker( 1674.72, 1447.909, 10.737, "cylinder", 1.5, 255, 0, 0, 100) function MarkerHit( hitElement, matchingDimension ) if( getElementType( hitElement) == "player" and not isPedInVehicle( hitElement) ) then local city if( source == LSMarker) then city = 1 elseif ( source == SFMarker) then city = 2 elseif ( source == LVMarker) then city = 3 else return end if( getPlayerWantedLevel( hitElement) > 0 ) then outputChatBox( "Airport security stoped you!", hitElement, 255, 0, 0) return end triggerClientEvent( "OnClientEnterAirport", hitElement, city ) end end addEventHandler( "onMarkerHit", getRootElement(), MarkerHit) local GUI_window = guiCreateWindow(300,146,230,267,"SPAJK AIR",false) local GUI_grid = guiCreateGridList(13,35,203,195,false,GUI_window) guiGridListSetSelectionMode(GUI_grid,0) guiGridListAddColumn(GUI_grid,"Airports:",0.2) local LSR = guiGridListAddRow(GUI_grid) local LVR = guiGridListAddRow(GUI_grid) local SFR = guiGridListAddRow(GUI_grid) guiGridListSetItemText(GUI_grid,0,1,"Los Santos") guiGridListSetItemText(GUI_grid,1,1,"Las Venturas") guiGridListSetItemText(GUI_grid,2,1,"San Fierro") local GUI_label = guiCreateLabel(10,154,185,31,"ALL FLIGHTS COST $2000",false,GUI_window) guiLabelSetColor(GUI_label,255,0,0) guiLabelSetVerticalAlign(GUI_label,"center") guiLabelSetHorizontalAlign(GUI_label,"center",false) GUI_button1 = guiCreateButton(11,238,87,20,"Fly",false,GUI_window) GUI_button2 = guiCreateButton(131,238,87,20,"Close",false,GUI_window) addEvent( "OnClientEnterAirport", true) function Enter(city) guiSetVisible( GUI_window, true) if( city == 1 ) then guiSetVisible( LSR, false) elseif( city == 2 ) then guiSetVisible( SFR, false) elseif( city == 3 ) then guiSetVisible( LVR, false) end showCursor(true) end addEventHandler( "OnClientEnterAirport", getRootElement(), Enter) function Click(button,state) if( button == "left" and state == "down" ) then if( source == GUI_button1 ) if( getPlayerMoney()<2000 ) then outputChatBox("You don't have enough money for this flight!",255,0,0) else local city = guiGridListGetSelectedItem(GUI_grid) playSound("landing.mp3") setTimer(GoGoGo,5000,1,city) fadeCamera( true, 1.0) if( city == 1 ) setCameraMatrix(1846.63671875, -2319.6220703125, 56.055404663086, 1898.8486328125, -2428.48046875, 17.950902938843) elseif( city == 2 ) setCameraMatrix(-1303.6181640625, 150.23046875, 102.18531799316, -1354.0478515625, -10.3310546875, 39.475650787354) elseif( city == 3 ) setCameraMatrix(1656.625, 1672.4169921875, 46.536811828613, 1641.220703125, 1646.908203125, 39.581771850586) end showPlayerHudComponent("all", false ) showCursor(false) end elseif( source == GUI_button2 ) guiSetVisible(GUI_window,false) showCursor(false) end end end function GoGoGo(city) fadeCamera( true, 1.0) setCameraTarget( getLocalPlayer()) if( city == 1 ) setElementPosition ( getLocalPlayer(), 1686.154296875, -2327.875, 13.948606491089 ) elseif( city == 2 ) setElementPosition ( getLocalPlayer(), -1424.5205078125, -290.970703125, 14.650023460388 ) elseif( city == 3 ) setElementPosition ( getLocalPlayer(), 1690.9189453125, 1448.125, 10.736848831177 ) end guiSetVisible(GUI_window,false) showCursor(false) takePlayerMoney(2000) end addEventHandler( "onClientGUIClick", getRootElement(), Click ) You had a lot of functions starting with a capital, like ShowCursor and OutputChatBox, should be showCursor and outputChatBox. Also it's elseif not else if.
  4. Alpha

    Taxi help

    getPedOccupiedVehicleSeat
  5. Post the code where you warp the player.
  6. Thanks, I already chose Google Code, topic can be closed now.
  7. +1 the logo is like a mark on the face of the modding community, you change it and you disrupt time as we know it +1 I totally agree with that the logo should never be changed.
  8. addCommandHandler("spawninmap", function (player) local ID = getElementData (player, "ID") executeCommandHandler("vote", player, ID) outputChatBox("You spawned",player,255,255,0,true) end )
  9. Which is why it won't match the values in the table, because they contain upper-case characters.
  10. I'm making a website, it's based on MTA and my resources. I could really use some help on what should it contain, I want something where I can upload my resources, upload new versions, maybe issue tracking if possible. Or, should I just use Google Code or Sourceforge? Any help/ideas is appreciated, thanks.
  11. Not true, anyways, it should contain more information, like advantages and disadvantages.
  12. I meant normal scripting editors, IDE, not mta resources.
  13. Alpha

    Skin take

    Your code is simply fucked up, doesn't need testing or glasses to see that.
  14. There should be also advice on which script editor to use, with reasons, etc..
  15. This needs to be locked. If the guy will actually release it, let him make a new topic.
  16. Fixed. Version 1.0.2 released. Download Soon.
  17. Alpha

    SQLite

    viewtopic.php?f=148&t=38203
  18. Reproduced, confirmed, and fixed. Thanks for reporting. Version 1.0.1 released, just fixed that bug. Download
  19. function replaceTXD() txd = engineLoadTXD ( "newstuff_sfn.txd" ) engineImportTXD(txd, 9314) engineImportTXD(txd, 9314) txd = engineLoadTXD ( "vgwestabats.txd" ) engineImportTXD(txd, 7915) engineImportTXD(txd, 7915) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceTXD) client2.lua و الغى
  20. Should I upload it to the community, I just don't like it, what do you guys think?
  21. Thanks. It's not supposed to be used like a forum, it's supposed to be used for support, player who needs support, submits a ticket, admins review it and reply, when the issue is solved, the ticket should be closed.
  22. <meta> <info author="50p" version="0.1.0" type="misc" /> <script src="client1.lua" type="client"/> <script src="client2.lua" type="client"/> <script src="server.lua" type="server" /> <map src="mapp.map" dimension="0"></map> <file src="newstuff_sfn.txd" /> <file src="vgwestabats.txd" /> </meta>
×
×
  • Create New...