Jump to content

TorNix~|nR

Members
  • Posts

    503
  • Joined

  • Last visited

Everything posted by TorNix~|nR

  1. @NeXuS™ worked fine, thank you.
  2. guys help I want to make a timer for the bindkey, help please? function shootProjectile() local vehicle = getPedOccupiedVehicle(localPlayer) -- Only create projectile if we are inside a vehicle if getElementModel(vehicle) == 411 then local x, y, z = getElementPosition(vehicle) createProjectile(vehicle, 19, x, y, z) end end bindKey("vehicle_fire", "down", shootProjectile)
  3. @LopSided_, I made this, is this working? function shootProjectile() local vehicle = getPedOccupiedVehicle(localPlayer) -- Only create projectile if we are inside a vehicle if getElementModel(vehicle) == 411 then local x, y, z = getElementPosition(vehicle) createProjectile(vehicle, 19, x, y, z) end end bindKey("vehicle_fire", "down", shootProjectile)
  4. I'm waiting to make a shooter system, only the Infernus vehicle can use it
  5. @LopSided_, I'm talking about the shooter system.
  6. TorNix~|nR

    Shooter

    Hello guys, I need help I want to make a shooter system only for vehicles for example only for Infernus car. help please?
  7. TorNix~|nR

    help

    Guys, in this code, the " inValidWeapons " disabled the weapons for the panel I want to disabled it only for the players, not for the source help please local inValidWeapons = {[1] = true , [4] = true , [5] = true , [8] = true , [9] = true , [38] = true , [34] = true , [36] = true , [37] = true} addEvent("AdminPanel.giveWeap", true) function giveWeap(plr, getText) if plr and isElement(plr) then if getText then local wep = getWeaponIDFromName(getText) if not wep then wep = getText end if inValidWeapons[tonumber(wep)] then return end local ammo = ((plr == client) and 5000) or 90 giveWeapon(plr, wep, ammo, true) end end end addEventHandler("AdminPanel.giveWeap", root, giveWeap)
  8. TorNix~|nR

    Logs

    @TheMOG thank you , the code of @Tekken is worked fine, ty
  9. TorNix~|nR

    Logs

    @Tekken, Thank you so much, you really saved my day
  10. TorNix~|nR

    Logs

    Hello guys, I'm using a admin panel from the community https://community.multitheftauto.com/index.php?p=resources&s=details&id=8770 and I want to make logs for the players who owns the panel, for example when giving weapons, skins.. etc help please?
  11. hello guys I have a problem on this code, I don't know how to fix it I can use this blip, but everyone can see it blips [ thePlayer ] = createBlipAttachedTo ( markers [ thePlayer ] , 58, localPlayer ) I don't know how to make it for only the player ( source ), I use this and it didn't work blips [ thePlayer ] = createBlipAttachedTo ( markers [ thePlayer ] , 58, source ) help please?
  12. @LopSided_, is the onPlayerQuit the same ? I use source or player for it?
  13. TorNix~|nR

    Problem

    Guys, I have a problem on Taxi Job, I don't know why, onVehicleExit destroy the blip and marker, worked fine but onPlayerWasted won't work, I don't know why Help please local pickups = { [1]={ 2060.7685546875, -1941.1181640625, 13.14103603363 }, [2]={ 2114.5068359375, -1611.302734375, 13.167269706726 }, [3]={ 1932.9521484375, -1776.1259765625, 13.16081237793 }, [4]={ 1057.41796875, -1568.4853515625, 13.166387557983 }, [5]={ 1133.2607421875, -1286.6201171875, 13.245727539063 }, [6]={ 1197.380859375, -1576.9228515625, 13.2406873703 }, [7]={ 1275.6181640625, -1717.5087890625, 13.241578102112 }, [8]={ 1041.908203125, -1869.1728515625, 13.15417766571 }, [9]={ 680.9248046875, -1763.6552734375, 13.168544769287 }, [10]={ 597.5556640625, -1598.90234375, 16.215705871582 }, [11]={ 357.197265625, -1443.72265625, 34.185447692871 } } local dropoffss = { [1]={ 1965.54296875 , -1883.013671875, 13.160305023193 }, [2]={ 1467.3916015625, -1736.419921875, 13.242918014526 }, [3]={ 2376.1064453125, -1728.4091796875, 13.162055015564 }, [4]={ 1066.5029296875, -1200.86328125, 18.405519485474 }, [5]={ 584.8916015625, -1328.7021484375, 13.25985622406 }, [6]={ 989.75, -1372.083984375, 13.244333267212 }, [7]={ 1116.333984375, -1410.7666015625, 13.267498970032 }, [8]={ 1437.5244140625, -1039.8212890625, 23.564819335938 }, [9]={ 2124.4521484375, -1116.4931640625, 25.031726837158 }, [10]={ 2700.8857421875, -1091.896484375, 69.064071655273 }, [11]={ 2769.2744140625, -1494.0517578125, 27.58003616333 } } local pedCus = { [1]={ 9 }, [2]={ 10 }, [3]={ 14 }, [4]={ 15 }, [5]={ 37 } } function teamSet ( ) triggerClientEvent (source, "joinjob", source) setElementModel(source, 57) fadeCamera ( source, false, 1, 0, 0, 0 ) setTimer ( fadeCamera, 2300, 1, source, true, 1 ) vehicle2 = createVehicle(420, 1777.3017578125, -1891.779296875, 13.157614707947) setTimer ( warpPedIntoVehicle, 2300, 1, source, vehicle2, 0 ) end addEvent ( "sTeame", true) addEventHandler ( "sTeame", root, teamSet ) markers = { } blips = { } peds = { } mposi = { } mposii = {} function startJob ( thePlayer ) triggerClientEvent (thePlayer, "startmision", 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 ] , 0, localPlayer ) 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 ] , 41, localPlayer ) addEventHandler ( "onMarkerHit", markers [ thePlayer ], pickmeup ) end end end function pickmeup ( thePlayer ) if ( getElementType ( thePlayer ) == "player" and isPedInVehicle ( thePlayer ) ) then destroyJob ( thePlayer ) destroyElement( vehicle2 ) money = math.random ( 500, 1000 ) givePlayerMoney ( thePlayer, money ) destroyElement ( peds [ thePlayer ] ) fadeCamera ( thePlayer, false, 1, 0, 0, 0 ) setTimer ( fadeCamera, 2300, 1, thePlayer, true, 1 ) setTimer ( setElementPosition, 2300, 1, thePlayer, 1783.0703125, -1887.7529296875, 13.391565322876) triggerClientEvent (thePlayer, "Trabajo", thePlayer) end end function destroyJob ( thePlayer ) if ( isElement ( markers [ thePlayer ] ) ) then destroyElement ( markers [ thePlayer ] ) end if ( isElement ( blips [ thePlayer ] ) ) then destroyElement( blips [ thePlayer ] ) end end ----------------------------------- LINES !!! 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", root, deleteOnExit ) addEventHandler("onVehicleExit",root, function (thePlayer) if vehicle2 then if isElement( vehicle2 ) then destroyElement( vehicle2 ) end end end) ---- function deleteOnWasted ( 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 ( "onPlayerWasted", root, deleteOnWasted ) addEventHandler("onPlayerWasted",root, function (thePlayer) if vehicle2 then if isElement( vehicle2 ) then destroyElement( vehicle2 ) end end end)
  14. TorNix~|nR

    Skin

    Done! I made it, thanks for everything.
  15. TorNix~|nR

    Skin

    I mean only the user on the ACL, can access to that command
  16. TorNix~|nR

    Skin

    thank you, but is there no way use this? isObjectInACLGroup
  17. TorNix~|nR

    Skin

    Hello guys, how do I set ACL access on this script, I don't know how help please function Skin(thePlayer, commandName) setElementModel(thePlayer, 10) end addCommandHandler("skin", Skin)
  18. Thanks guys. it's fixed
  19. Thanks for everything, I gave up.
×
×
  • Create New...