Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. What CiBeR post is just like what i posted already. The code should work fine, however you will not be able to close the gate after you open it because it will go up and the distance will be more than 10 and therefore to close it you have to fly to it.
  2. خطأ مطبعي
  3. viewtopic.php?f=91&t=64945&p=613195 viewtopic.php?f=91&t=69077&p=644501 + playTime اكتب بالبحث المنتدى
  4. اول كود تلقاه بالكومنتي ثاني كود: https://wiki.multitheftauto.com/wiki/ConvertNumber
  5. local pickups = { [1]={ -1397.3532714844, - 327.68801879883, 14 }, [2]={ 2162.0393066406, 1680.4851074219, 10.8203125 }, [3]={ 1816.2468261719, -1902.5074462891, 13.564742088318 }, } local dropoffss = { [1]={ 2079.2690429688, 1519.7746582031, 10.82003125, }, [2]={ 1481.6596679688, -1737.782470703,13.546875, }, [3]={ -1997.6879882813, 283.61083984375, 33.614753723145, }, } local pedCus = { [1]={ 9 }, [2]={ 13 }, [3]={ 31 }, [4]={ 41 }, [5]={ 56 }, [6]={ 0 }, [7]={ 14 }, [8]={ 15 }, [9]={ 19 }, [10]={ 18 }, } Teame = createTeam("CilivianWorks", 255,255,0) taxiTeams = { [Teame] = true } taxiVehs = { [420] = true } function teamSet ( ) local team = getTeamFromName ( "CilivianWorks" ) if team then setPlayerTeam ( source, team ) setElementData( source, "Occupation", "TaxiDriver", true ) setPlayerNametagColor ( source, 255,255,0 ) setElementModel(source, 57) outputChatBox("You are now employed as a Taxi Driver!", source, 255, 0, 0, true) else local teamw = getTeamFromName ( "Taxi Driver" ) if teamw then cancelEvent() outputChatBox("You are already a Taxi driver!", source, 255, 255, 0, true) end end end addEvent ( "sTeame", true) addEventHandler ( "sTeame", root, teamSet ) markers = { } blips = { } peds = { } mposi = { } mposii = {} function startJob ( thePlayer ) local x, y, z = unpack ( pickups [ math.random ( #pickups ) ] ) markers [ thePlayer ] = createMarker ( x, y, z, "cylinder", 5.0, 255, 0, 0, 0 ) mposi = { getElementPosition( markers [ thePlayer ] ) } local skins = unpack ( pedCus [ math.random ( #pedCus ) ] ) peds [ thePlayer ] = createPed( skins, x, y, z ) blips [ thePlayer ] = createBlipAttachedTo ( markers [ thePlayer ], 60 ) addEventHandler ( "onMarkerHit", markers [ thePlayer ], warpit ) end function inVEH ( thePlayer ) if ( getElementType ( thePlayer ) == "player" and isPedInVehicle ( thePlayer ) ) then if ( getElementModel ( source ) == 420 ) then startJob ( thePlayer ) end end end addEventHandler ( "onVehicleEnter", getRootElement(), inVEH ) function warpit ( thePlayer ) if ( getElementType ( thePlayer ) == "player" and isPedInVehicle ( thePlayer ) ) then local vehiclee = getPedOccupiedVehicle ( thePlayer ) if ( getElementModel ( vehiclee ) == 420 ) then setTimer ( warpPedIntoVehicle, 2000, 1, peds [ thePlayer ], vehiclee, 2 ) destroyJob ( thePlayer ) local x, y, z = unpack ( dropoffss [ math.random ( #dropoffss ) ] ) markers [ thePlayer ] = createMarker ( x, y, z - 1, "cylinder", 5.0, 255, 0, 0, 50 ) mposii = { getElementPosition( markers [ thePlayer ] ) } blips [ thePlayer ] = createBlipAttachedTo ( markers [ thePlayer ], 19 ) addEventHandler ( "onMarkerHit", markers [ thePlayer ], pickmeup ) end end end function pickmeup ( thePlayer ) if ( getElementType ( thePlayer ) == "player" and isPedInVehicle ( thePlayer ) ) then destroyJob ( thePlayer ) local mx, my, mz = unpack ( mposi ) local mmx, mmy, mmz = unpack ( mposii ) local money = math.random(1000, 2000) if money then setTimer( givePlayerMoney, 3000, 1, thePlayer, money ) setTimer( outputChatBox, 3000, 1, "You have earned "..money.."!", thePlayer, 0, 144, 0) setTimer ( function ( ) if ( isElement ( peds [ thePlayer ] ) ) then destroyElement ( peds [ thePlayer ] ) peds [ thePlayer ] = nil end startJob ( thePlayer ) end ,3000, 1 ) end end end function deleteOnExit ( thePlayer ) if ( isElement ( markers [ thePlayer ] ) ) then destroyElement ( markers [ thePlayer ] ) markers [ thePlayer ] = nik end if ( isElement ( blips [ thePlayer ] ) ) then destroyElement ( blips [ thePlayer ] ) blips [ thePlayer ] = nil end if ( isElement ( peds [ thePlayer ] ) ) then destroyElement ( peds [ thePlayer ] ) peds [ thePlayer ] = nil end end addEventHandler ( "onVehicleExit", getRootElement(), deleteOnExit ) function destroyJob ( thePlayer ) if ( isElement ( markers [ thePlayer ] ) ) then destroyElement ( markers [ thePlayer ] ) markers [ thePlayer ] = nil end if ( isElement ( blips [ thePlayer ] ) ) then destroyElement( blips [ thePlayer ] ) blips [ thePlayer ] = nil end end function consoleSetPlayerPosition ( source, commandName, posX, posY, posZ ) setElementPosition ( source, posX, posY, posZ ) end addCommandHandler ( "setpos", consoleSetPlayerPosition )
  6. عندك اخطاء كثير بالأرقمنت جرب الحين local pickups = { [1]={ -1397.3532714844, - 327.68801879883, 14 }, [2]={ 2162.0393066406, 1680.4851074219, 10.8203125 }, [3]={ 1816.2468261719, -1902.5074462891, 13.564742088318 }, } local dropoffss = { [1]={ 2079.2690429688, 1519.7746582031, 10.82003125, }, [2]={ 1481.6596679688, -1737.782470703,13.546875, }, [3]={ -1997.6879882813, 283.61083984375, 33.614753723145, }, } local pedCus = { [1]={ 9 }, [2]={ 13 }, [3]={ 31 }, [4]={ 41 }, [5]={ 56 }, [6]={ 0 }, [7]={ 14 }, [8]={ 15 }, [9]={ 19 }, [10]={ 18 }, } Teame = createTeam("CilivianWorks", 255,255,0) taxiTeams = { [Teame] = true } taxiVehs = { [420] = true } function teamSet ( ) local team = getTeamFromName ( "CilivianWorks" ) if team then setPlayerTeam ( source, team ) setElementData( source, "Occupation", "TaxiDriver", true ) setPlayerNametagColor ( source, 255,255,0 ) setElementModel(source, 57) outputChatBox("You are now employed as a Taxi Driver!", source, 255, 0, 0, true) else local teamw = getTeamFromName ( "Taxi Driver" ) if teamw then cancelEvent() outputChatBox("You are already a Taxi driver!", source, 255, 255, 0, true) end end end addEvent ( "sTeame", true) addEventHandler ( "sTeame", root, teamSet ) markers = { } blips = { } peds = { } mposi = { } mposii = {} function startJob ( thePlayer ) local x, y, z = unpack ( pickups [ math.random ( #pickups ) ] ) markers [ thePlayer ] = createMarker ( x, y, z, "cylinder", 5.0, 255, 0, 0, 0 ) mposi = { getElementPosition( markers [ thePlayer ] ) } local skins = unpack ( pedCus [ math.random ( #pedCus ) ] ) peds [ thePlayer ] = createPed( skins, x, y, z ) blips [ thePlayer ] = createBlipAttachedTo ( markers [ thePlayer ], 60 ) addEventHandler ( "onMarkerHit", markers [ thePlayer ], warpit ) end function inVEH ( thePlayer ) if ( getElementType ( thePlayer ) == "player" and isPedInVehicle ( thePlayer ) ) then if ( getElementModel ( source ) == 420 ) then startJob ( thePlayer ) end end end addEventHandler ( "onVehicleEnter", getRootElement(), inVEH ) function warpit ( thePlayer ) if ( getElementType ( thePlayer ) == "player" and isPedInVehicle ( thePlayer ) ) then local vehiclee = getPedOccupiedVehicle ( thePlayer ) if ( getElementModel ( vehiclee ) == 420 ) then setTimer ( warpPedIntoVehicle, 2000, 1, peds [ thePlayer ], vehiclee, 2 ) destroyJob ( thePlayer ) local x, y, z = unpack ( dropoffss [ math.random ( #dropoffss ) ] ) markers [ thePlayer ] = createMarker ( x, y, z - 1, "cylinder", 5.0, 255, 0, 0, 50 ) mposii = { getElementPosition( markers [ thePlayer ] ) } blips [ thePlayer ] = createBlipAttachedTo ( markers [ thePlayer ], 19 ) addEventHandler ( "onMarkerHit", markers [ thePlayer ], pickmeup ) end end end function pickmeup ( thePlayer ) if ( getElementType ( thePlayer ) == "player" and isPedInVehicle ( thePlayer ) ) then destroyJob ( thePlayer ) local mx, my, mz = unpack ( mposi ) local mmx, mmy, mmz = unpack ( mposii ) local money = getDistanceBetweenPoints2D ( mx, my, mmx, mmy ) finalmoney = math.floor ( money ) if finalmoney then setTimer( givePlayerMoney, 3000, 1, thePlayer, finalmoney ) setTimer( outputChatBox, 3000, 1, "You have earned "..finalmoney.."!", thePlayer, 0, 144, 0) setTimer ( function ( ) if ( isElement ( peds [ thePlayer ] ) ) then destroyElement ( peds [ thePlayer ] ) peds [ thePlayer ] = nil end startJob ( thePlayer ) end ,3000, 1 ) end end end function deleteOnExit ( thePlayer ) if ( isElement ( markers [ thePlayer ] ) ) then destroyElement ( markers [ thePlayer ] ) markers [ thePlayer ] = nik end if ( isElement ( blips [ thePlayer ] ) ) then destroyElement ( blips [ thePlayer ] ) blips [ thePlayer ] = nil end if ( isElement ( peds [ thePlayer ] ) ) then destroyElement ( peds [ thePlayer ] ) peds [ thePlayer ] = nil end end addEventHandler ( "onVehicleExit", getRootElement(), deleteOnExit ) function destroyJob ( thePlayer ) if ( isElement ( markers [ thePlayer ] ) ) then destroyElement ( markers [ thePlayer ] ) markers [ thePlayer ] = nil end if ( isElement ( blips [ thePlayer ] ) ) then destroyElement( blips [ thePlayer ] ) blips [ thePlayer ] = nil end end function consoleSetPlayerPosition ( source, commandName, posX, posY, posZ ) setElementPosition ( source, posX, posY, posZ ) end addCommandHandler ( "setpos", consoleSetPlayerPosition ) EDIT: انسخ الكود مره ثانية سويت تعديل
  7. العلامات المفروض على اللاعب او البيدا او السيارة او الماركر بالضبط؟ جرب ذا local pickups = { [1]={ -1397.3532714844, - 327.68801879883, 14 }, [2]={ 2162.0393066406, 1680.4851074219, 10.8203125 }, [3]={ 1816.2468261719, -1902.5074462891, 13.564742088318 }, } local dropoffss = { [1]={ 2079.2690429688, 1519.7746582031, 10.82003125, }, [2]={ 1481.6596679688, -1737.782470703,13.546875, }, [3]={ -1997.6879882813, 283.61083984375, 33.614753723145, }, } local pedCus = { [1]={ 9 }, [2]={ 13 }, [3]={ 31 }, [4]={ 41 }, [5]={ 56 }, [6]={ 0 }, [7]={ 14 }, [8]={ 15 }, [9]={ 19 }, [10]={ 18 }, } Teame = createTeam("CilivianWorks", 255,255,0) taxiTeams = { [Teame] = true } taxiVehs = { [420] = true } function teamSet ( ) local team = getTeamFromName ( "CilivianWorks" ) if team then setPlayerTeam ( source, team ) setElementData( source, "Occupation", "TaxiDriver", true ) setPlayerNametagColor ( source, 255,255,0 ) setElementModel(source, 57) outputChatBox("You are now employed as a Taxi Driver!", source, 255, 0, 0, true) else local teamw = getTeamFromName ( "Taxi Driver" ) if teamw then cancelEvent() outputChatBox("You are already a Taxi driver!", source, 255, 255, 0, true) end end end addEvent ( "sTeame", true) addEventHandler ( "sTeame", root, teamSet ) markers = { } blips = { } peds = { } mposi = { } mposii = {} function startJob ( thePlayer ) local x, y, z = unpack ( pickups [ math.random ( #pickups ) ] ) markers [ thePlayer ] = createMarker ( x, y, z, "cylinder", 5.0, 255, 0, 0, 0 ) mposi = { getElementPosition( markers [ thePlayer ] ) } local skins = unpack ( pedCus [ math.random ( #pedCus ) ] ) peds [ thePlayer ] = createPed( skins, x, y, z ) blips [ thePlayer ] = createBlipAttachedTo ( markers [ thePlayer ], 60 ) addEventHandler ( "onMarkerHit", markers [ thePlayer ], warpit ) end function inVEH ( thePlayer ) if ( getElementType ( thePlayer ) == "player" and isPedInVehicle ( thePlayer ) ) then if ( getElementModel ( source ) == 420 ) then startJob ( thePlayer ) end end end addEventHandler ( "onVehicleEnter", getRootElement(), inVEH ) function warpit ( thePlayer ) if ( getElementType ( thePlayer ) == "player" and isPedInVehicle ( thePlayer ) ) then local vehiclee = getPedOccupiedVehicle ( thePlayer ) if ( getElementModel ( vehiclee ) == 420 ) then setTimer ( warpPedIntoVehicle, 2000, 1, peds [ thePlayer ], vehiclee, 2 ) destroyJob ( thePlayer ) local x, y, z = unpack ( dropoffss [ math.random ( #dropoffss ) ] ) markers [ thePlayer ] = createMarker ( x, y, z - 1, "cylinder", 5.0, 255, 0, 0, 50 ) mposii = { getElementPosition( markers [ thePlayer ] ) } blips [ thePlayer ] = createBlipAttachedTo ( markers [ thePlayer ], 19 ) addEventHandler ( "onMarkerHit", markers [ thePlayer ], pickmeup ) end end end function pickmeup ( thePlayer ) if ( getElementType ( thePlayer ) == "player" and isPedInVehicle ( thePlayer ) ) then destroyJob ( thePlayer ) local mx, my, mz = unpack ( mposi ) local mmx, mmy, mmz = unpack ( mposii ) local money = getDistanceBetweenPoints2D ( mx, my, mmx, mmy ) finalmoney = math.floor ( money ) if finalmoney then setTimer( givePlayerMoney, 3000, 1, source, finalmoney ) setTimer( outputChatBox, 3000, 1, "You have earned "..finalmoney.."!", thePlayer, 0, 144, 0) setTimer ( function ( ) if ( isElement ( peds [ thePlayer ] ) ) then destroyElement ( peds [ thePlayer ] ) end startJob ( thePlayer ) end ,3000, 1 ) end end end function deleteOnExit ( thePlayer ) if ( isElement ( markers [ thePlayer ] ) ) then destroyElement ( markers [ thePlayer ] ) end if ( isElement ( blips [ thePlayer ] ) ) then destroyElement ( blips [ thePlayer ] ) end if ( isElement ( peds [ thePlayer ] ) ) then destroyElement ( peds [ thePlayer ] ) end end addEventHandler ( "onVehicleExit", getRootElement(), deleteOnExit ) function destroyJob ( thePlayer ) if ( isElement ( markers [ thePlayer ] ) ) then destroyElement ( markers [ thePlayer ] ) end if ( isElement ( blips [ thePlayer ] ) ) then destroyElement( blips [ thePlayer ] ) end end function consoleSetPlayerPosition ( source, commandName, posX, posY, posZ ) setElementPosition ( source, posX, posY, posZ ) end addCommandHandler ( "setpos", consoleSetPlayerPosition )
  8. HideWindow المشكلة عندك بكود السيرفر في التريقر الكود هذا تحديداً triggerClientEvent (root) اعتقد انك مو حاط اول ارقمنت عشان كذا يسوي تريقر للكل
  9. صحيح ان الكود هريس لكن المفروض الماركر ظاهر إلا إذا انت حاط احداثيات خطأ ذا شي ثاني الحين الي ما فهمته انت تبيه للتيمات ولا اللاعبين كل واحد لحاله؟
  10. في احد قال ان الهاكات مو برمجة؟ ؟._.
  11. https://forum.multitheftauto.com/viewtopic.php?f=91&t=48495
  12. ما في أكواد ؟ هاك اكثر يعني ما تموت وكذا Event: "onClientPlayerDamage" cancelEvent
  13. اصلاً وش دخل باتفيلد في ستيم origin على برنامج تابع للشركة اسمه EA كل العاب شركة و الأسعار الي انت حاطها غير واقعيه نهائياً يعني من جدك بتفيلد 2 اغلى من بتفيلد 3!!!!!!!!!!!!
  14. setWorldSpecialPropertyEnabled setElementAlpha
  15. addCommandHandler("create", function(Player) if (getPlayerMoney(Player) >= 500) then takePlayerMoney(Player, 500) giveWeapon(Player, 13, 133) outputChatBox("** تم صنع و اعطاءك سلأح", Player, 255, 0, 0, true) end end) addCommandHandler("create2", function(Player) if (getPlayerMoney(Player) >= 500) then takePlayerMoney(Player, 500) giveWeapon(Player, 55, 55555) outputChatBox("** تم صنع و اعطاءك سلأح", Player, 255, 0, 0, true) end end)
  16. Does GTA single work?
  17. A virus will force you to select GTA:SA folder for MTA? ? If you've looked carefully on the image, you should have notice that he have AVAST INSTALLED ALREADY.
  18. How it will work if you did not define 'source'?
  19. triggerClientEvent("onSceltaPersonaggioAttiva", getRootElement()) Should be: triggerClientEvent(thePlayer, "onSceltaPersonaggioAttiva", getRootElement())
  20. وليه ما تسويه بنفسك؟!! getPlayerMoney takePlayerMoney setPedArmor
  21. That's not the full code, you've already posted that above.
  22. Impossible, try lower the distance.
  23. We don't give support with leaked scripts.
  24. TAPL

    help

    If you can't speak English, please write in Arabic section: https://forum.multitheftauto.com/viewforum.php?f=119
  25. true انا جربت سيارة ثانية و طلع لي دائماً مثل سيارة رقم 402 false و بعض السيارات دائماً يعطي ._. اثره الفنكشن نفسه مخرف مو حنا
×
×
  • Create New...