kevincouto6 Posted July 8, 2018 Share Posted July 8, 2018 Could someone help me, I want to complete this work, mission is as follows the player must go to the car with the time of 5 min and get in the car and locomoverse until the "BFim", if he does not arrive in time in the vehicle will miss the mission Mfim = createMarker (-1828.72888, -1627.62219, 23.23001 -1, "cylinder", 2, 0 ,255 ,0, 255) Bfim = createBlipAttachedTo ( Mfim, 19 ) setElementVisibleTo ( Bfim, root, false ) veh = {} function started () veh[source] = (402,-2404.80957, -599.06909, 132.64844,0 ,0 ,0 ) end addCommandHandler ( "começar", started ) function enterCar (source) if veh[source] and isElement(veh[source]) then destroyElement (veh[source]) = false else end end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), enterCar ) function checkedPlayer ( ) if isPlayerInVehicle ( veh[source] ) then if veh[source] and isElement(veh[source]) then destroyElement (veh[source]) = false else end else setTimer(function(source) if veh[source] and isElement(veh[source]) then destroyElement (veh[source]) else end end, 300000, 0) end end function fim (source) if veh[source] and isElement(veh[source]) then destroyElement (veh[source]) givePlayerMoney(source,200000) setElementVisibleTo ( Bfim, source, false ) outputChatBox("#00ff00Sua missão foi um sucesso",source,0,0,0,true) else end end addEventHandler("onMarkerHit",Mfim ,fim) function playerdeath () if veh[source] and isElement(veh[source]) then destroyElement (veh[source]) setElementVisibleTo ( Bfim, source, false ) outputChatBox("#00ff00Sua missão Falhou voçe morreu!",source,0,0,0,true) else end end addEventHandler ( "onPlayerWasted", getRootElement(), player_Wasted ) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now