Jump to content

QoRaY

Members
  • Posts

    40
  • Joined

  • Last visited

Everything posted by QoRaY

  1. Will be evident. Help (color green)
  2. How can I change the color of the admin chat? HELP PLEASE!
  3. Thank you for helping ! PaiN^ solve my problem. Thank you very much !
  4. WARNING: [gameplay]\meslekler\busjob.lua:63: Bad argument @ 'getPedOccupiedVehicle' WARNING: [gameplay]\meslekler\busjob.lua:64: Bad argument @ 'getElementModel' [Expected element at argument 1, got boolean]
  5. RUNNİNG THE SCRİPT, BUT THE MONEY DOES NOT COME!!! HELP server.lua local rootElement = getRootElement() local busses = {[431] = true, [437] = true, [582] = true, [456] = true, [459] = true, [428] = true, [498] = true, [508] = true, [413] = true} local busTable = { [1]={1269.98, -1852.29, 13.3828},[2]={1181.87, -1796.36, 13.3984},[3]={1164.47, -1712.17, 13.7231},[4]={1038.74, -1712.84, 13.4254},[5]={1037.64, -1558.29, 13.3862}, [6]={1061.46, -1443.02, 13.4006},[7]={1051.46, -1396.45, 13.4565},[8]={825.122, -1395.14, 13.3444},[9]={648.371, -1395.33, 13.3444},[10]={635.96, -1252.67, 17.1576}, [11]={554.18, -1122.47, 27.2105},[12]={238.52, -1170.34, 19.5841},[13]={-43.18, -1354.07, 11.2299},[14]={-284.8, -1642.00, 15.5116},[15]={-354.4, -1831.65, 22.2320}, [16]={-348.6, -2125.50, 28.3879},[17]={-174.6, -2413.64, 35.6235},[18]={-36.62, -2711.40, 42.0042},[19]={-315.0, -2800.08, 57.5757},[20]={-757.3, -2764.34, 74.7090}, [21]={-1141, -2850.020, 67.7570},[22]={-1569, -2742.080, 48.5795},[23]={-1966, -2547.510, 38.2349},[24]={-2191, -2370.410, 30.5065},[25]={-2212, -2264.740, 30.5055}, [26]={-2102, -2078.130, 63.1302},[27]={-1820, -1726.650, 29.1070},[28]={-1400, -1648.350, 45.1570},[29]={-1144, -1899.890, 77.5020},[30]={-802.3, -1785.11, 92.2070}, [31]={-758.6, -1454.05, 87.8020},[32]={-652.7, -1420.18, 90.4095},[33]={-572.8, -1070.35, 23.5500},[34]={-372.0, -823.054, 28.4015},[35]={-189.6, -938.291, 35.3530}, [36]={-55.70, -858.507, 13.7823},[37]={-113.0, -402.609, 1.10380},[38]={-221.9, 187.8397, 8.88888},[39]={-63.88, 551.1700, 9.22222},[40]={323.85, 753.2600, 6.15222}, [41]={740.54, 657.1210, 10.7505},[42]={1099.8, 803.8835, 10.7070},[43]={1556.6, 831.4191, 6.80807},[44]={1785.1, 798.4346, 11.2008},[45]={1605.7, 116.6938, 37.2020}, [46]={1701.3, -644.311, 41.8010},[47]={1635.6, -884.206, 52.5121},[48]={1798.2, -1037.61, 39.4545},[49]={2223.8, -1137.70, 25.6588},[50]={2269.0, -1209.68, 23.9119}, [51]={2196.8, -1382.42, 23.8575},[52]={2110.5, -1427.29, 23.8566},[53]={2002.0, -1459.51, 13.4255},[54]={1842.8, -1508.62, 13.3936},[55]={1819.2, -1865.68, 13.4469}, [56]={1779.7, -1917.97, 13.4165},[57]={1811.2, -1890.22, 13.4372},[58]={1798.6, -1830.07, 13.4257},[59]={1680.3, -1859.67, 13.4131},[60]={1468.2, -1869.85, 13.4074}, } createBlip(1256.6, -1812.2, 13.41, 55, 3, 0, 0, 255, 255, 0, 250) function getNewBusLocation(thePlayer, ID) local x, y, z = busTable[ID][1], busTable[ID][2], busTable[ID][3] triggerClientEvent(thePlayer,"bus_set_location",thePlayer,x,y,z) end function busJob(thePlayer) local theVehicle = getPedOccupiedVehicle (thePlayer) local id = getElementModel(theVehicle) if id == 431 or id == 437 or id == 582 or id == 556 or id == 459 or id == 428 or id == 498 or id == 508 or id == 413 then local x, y, z = getNewBusLocation(thePlayer, 1) setElementData(thePlayer,"buszp",0) setElementData(thePlayer,"busData",1) else end end addEventHandler("onVehicleEnter",rootElement,busJob) function busStart(thePlayer) local theVehicle = getPedOccupiedVehicle (thePlayer) local id = getElementModel(theVehicle) if id == 431 or id == 437 or id == 582 or id == 556 or id == 459 or id == 428 or id == 498 or id == 508 or id == 413 then outputChatBox("Otobus&Minibus gorevini baslatmak icin haritada belirtilen noktaya gidin!", thePlayer, 255, 255, 0) end end addEventHandler("onVehicleEnter",rootElement,busStart) addEvent("bus_finish",true) addEventHandler("bus_finish",rootElement, function (client) if not isPedInVehicle(client) then return end if not busses[getElementModel(getPedOccupiedVehicle(client))] then return end local zarp = getElementData(client, "buszp") local money = math.random(10,20) setElementData(client, "buszp", zarp + money) if #busTable == tonumber(getElementData(client,"busData")) then setElementData(client,"busData",1) else setElementData(client,"busData",tonumber(getElementData(client,"busData"))+1) end getNewBusLocation(client, tonumber(getElementData(client,"busData"))) end) function giveMoney(thePlayer) local theVehicle = getPedOccupiedVehicle (thePlayer) local id = getElementModel(theVehicle) if id == 431 or id == 437 or id == 582 or id == 556 or id == 459 or id == 428 or id == 498 or id == 508 or id == 413 then local gpm = getElementData(thePlayer, "buszp") if ((gpm) > 0 ) then givePlayerMoney(thePlayer, tonumber(gpm)) outputChatBox("Kazandiginiz miktar " .. gpm .. "$", thePlayer, 0, 140, 240) setElementData(thePlayer, "buszp", 0) end end end addEventHandler("onVehicleExit", rootElement, giveMoney) addEventHandler("onPlayerQuit", rootElement, giveMoney) client.lua local client = getLocalPlayer( ) local rootElement = getRootElement() local marker = nil local blip = nil addEvent("bus_set_location",true) addEventHandler("bus_set_location",rootElement, function (x, y, z) marker = createMarker(tostring(x), tostring(y), tostring(z)-1, "checkpoint", 4.0, 0, 0, 255, 255) blip = createBlipAttachedTo( marker, 41, 3, 0, 0, 255, 255 ) addEventHandler("onClientMarkerHit",marker,onBusStopHit) end) function onBusStopHit(hitPlayer) if not hitPlayer == client then return end triggerServerEvent("bus_finish",client,client) if isElement(blip) then destroyElement(blip) end if isElement(marker) then removeEventHandler("onClientMarkerHit",marker,onBusStopHit) destroyElement(marker) end end addEventHandler("onClientVehicleExit",rootElement, function () if isElement(marker) then removeEventHandler("onClientMarkerHit",marker,onBusStopHit) destroyElement(marker) end if isElement(blip) then destroyElement(blip) end end) meta.xml "QoRaY" description="TeM" version="1.0.2" type="misc"/>
  6. No it's different but you can make you're own on mta ; createObject moveObject Thanks for your help. Problem Solved! I did!
  7. Things are not different.
  8. SA-MP Code; on top of script: Code: new Gateclan; new Gatelift; under ongamemodeinit Code: //gate's Gateclan = CreateObject(969, -715.559143, 2867.067871, 76.068398, 91.10023213, 0.000000, -270.000001124); //gate gesloten Gatelift = CreateObject(3095, -681.501038, 2914.203613, 58.668404, 0.000000, 0.000000, 0.000000); //lift boven under onplayercommandtext: Code: if (strcmp(cmdtext, "/liftdown", true) == 0) { MoveObject(Gatelift,-681.354858, 2913.921387, 58.961586, 4.5000); return 1; } if (strcmp("/closegate", cmdtext, true, 10) == 0) { MoveObject(Gateclan, -715.559143, 2867.067871, 76.068398, 4.5000); return 1; } if (strcmp("/opengate", cmdtext, true, 10) == 0) { MoveObject(Gateclan, -715.540222, 2875.903809, 76.093399, 4.5000); return 1; } if (strcmp(cmdtext, "/liftup", true) == 0) { MoveObject(Gatelift,-681.354858, 2913.921387, 65.961586, 4.5000); return 1; } MTA-SA Convert Help !!
  9. I am from Turkey. google translation converts words. may be translated incorrectly. /watch code video player. ? Is this possible?
  10. Can we put the game ? Is it possible to do that?
  11. Can you help me I could not do the color codes?
  12. The problem is where the ANSI format. I could not color writings? Help.
  13. Help !! Code can not run.... "server.lua" function onResourceStart() Roket = createObject(3256, 151.51525878906, -1924.28515625, 1.7684149742126, 0.0, 0.0, 22) setTimer ( Firlatici, 1000, 0 ) -----Objeler------------------------------------------------------------------ createObject(14553, 183.2109375, -1942.396484375, 426.20306396484, 0.0, 0.0, 301.99768066406) createObject(2933, 148.14942932129, -1917.0718994141, 513.27954101563, 77.211517333984, 85.589660644531, 208.52209472656) createObject(1348, 147.12089538574, -1911.8510742188, 514.83880615234, 0.0, 0.0, 293.75) createObject(17511, 122.767578125, -1848.873046875, 504.611328125, 0.0, 0.0, 90.0) createObject(17055, 158.11459350586, -1874.6378173828, 521.19000244141, 0.0, 353.9838, 86.5622) createObject(1391, 85.307281494141, -1868.6457519531, 551.50366210938, 0.0, 0.0, 0.0) createObject(3255, 124.14200592041, -1848.7220458984, 520.01153564453, 0.0, 0.0, 90.0) createObject(3427, 149.05744934082, -1850.7489013672, 520.28454589844, 0.0, 0.0, 0.0) createObject(16778, 140.4736328125, -1821.2270507813, 514.49816894531, 0.0, 0.0, 0.0) createObject(17511, 122.767578125, -1848.873046875, 504.611328125, 0.0, 0.0, 0.0) createObject(17511, 122.767578125, -1848.873046875, 504.611328125, 0.0, 0.0, 0.0) createObject(16340, 98.174018859863, -1832.958984375, 523.29711914063, 0.0, 0.0, 0.0) createObject(13831, 147.36328125, -1887.9794921875, 222.43519592285, 0.0, 0.0, 0.0) -----Objeler------------------------------------------------------------------- end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), onResourceStart) function Firlatici () local x, y, z = getElementPosition ( Roket ) if math.floor(z) == 1 then moveObject(Roket,1, 151.51525878906, -1924.28515625, 2.7684149842126, 0.0, 0.0, 22) Bekletimer = setTimer ( Bekle, 30000, 0 ) outputChatBox ( "#00FF00[sAHIL] #FF0000Roket Birazdan Havalanacak.", value, 255,0,0,true ) elseif math.floor(z) == 504 then moveObject(Roket,1 , 151.51525878906, -1924.28515625, 503.22534179688, 0.0, 0.0, 22) Bekletimerasagi = setTimer ( asagi, 30000, 0 ) outputChatBox ( "#00FF00[sAHIL] #FF0000Roket Asagiya Iniyor !", value, 255,0,0,true ) end end function Bekle () moveObject(Roket,120000 , 151.5146484375, -1924.28515625, 504.22534179688, 0.0, 0.0, 0.0) -- Objeyi o kordinatlara götür killTimer (Bekletimer) end function asagi () moveObject(Roket,120000, 151.51525878906, -1924.28515625, 1.7684149742126, 0.0, 0.0, 21.99462890625) -- Objeyi o kordinatlara götür killTimer (Bekletimerasagi) end
  14. I mean, subject to a detailed. One can volunteer? Everyone comes in handy. An innovation for the game....
  15. I saw on YOUTUBE. My friends say I've seen other servers.
  16. My goal is not the RPM Style. Just change the sounds of car. I've seen on Youtube. But I could not.
  17. I want to change the sounds of car. Audio files available below. Please help... - - - Audio Files Click Here ! - - -
  18. Can not hear other players and at the sound is coming... Help?
×
×
  • Create New...