Jump to content

not share jobs


Recommended Posts

Posted

I have a problem ...

I and another player is getting to see the cylinder, is to do just a look?

function createPilotTeam () 
    Pilotteam = createTeam ("Caminhoneiro", 99, 155, 144) 
end 
addEventHandler ("onResourceStart", resourceRoot, createPilotTeam) 
  
function lsjobser () 
     entrega = createVehicle (403, -1834.484, 162.317, 16.086, 0,0,270) 
     carga = createVehicle (450, -1843.175, 162.317, 15.117, 0,0,270) 
     warpPedIntoVehicle(source, entrega) 
     playeraccount = getPlayerAccount( source ) 
     setAccountData( playeraccount, "team", "Traficante", true ) 
     setPlayerTeam( source, playeraccount ) 
     markerentrega = createMarker (-1748.417, 1.44, 3.555, "cylinder", 2, 255, 0, 0, 255, localPlayer ) 
     setMarkerTarget(markerentrega,3000,0,0, localPlayer ) 
     end 
addEvent ("fazenda", true) 
addEventHandler ("fazenda", root, lsjobser) 
  
function markerHitLVgate (hitPlayer, matchingDimension) 
local theVehicle = getPedOccupiedVehicle (hitPlayer) 
local id = getElementModel(theVehicle) 
  if ((source == markerentrega) or (source == gate2LVmarker)) and (id == 403) then 
    if ((getAccountData (getPlayerAccount (hitPlayer), "flightDestination")) == "LV") then 
    end  
    setTimer(function() 
    destroyElement(markerentrega) 
    destroyElement(entrega) 
    destroyElement(carga) 
    givePlayerMoney (hitPlayer, 3500) 
    outputChatBox ("Entrega feita com sucesso, aqui esta seu $3.500.", hitPlayer, 255, 255, 0) end, 
    50,1) 
        elseif ((source == markerentrega) or (source == gate2LVmarker)) then 
    outputChatBox ("Não da para voce entregar sem um caminhao o_O", hitPlayer, 255, 0, 0) 
  end 
end 
addEventHandler ("onMarkerHit", getRootElement(), markerHitLVgate) 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...