Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pilot = createMarker(1958.7470703125,-2181.32421875,12.4, "cylinder", 1.5, 255, 0, 0, 255)
- entreg = createMarker(1477.431640625,1602.3212890625,9, "cylinder", 10, 255, 0, 0, 255)
- bliptrab = createBlipAttachedTo ( pilot, 5 )
- blipentreg = createBlipAttachedTo ( entreg, 56 )
- setElementVisibleTo ( blipentreg, root, false )
- setElementVisibleTo ( entreg, root, false )
- veh = {}
- function trab (source)
- if isElementWithinMarker(source, pilot) then
- if veh[source] and isElement(veh[source]) then destroyElement (veh[source])
- veh[source]=nil
- end
- x,y,z = getElementPosition(source)
- Trabalho = true
- outputChatBox("#000000| #FFFF00Leve o avião até o blip vermelho ! #000000|", source, 0,0,0,true)
- veh[source] = createVehicle (519, 2016.59765625,-2493.9150390625,14.1, 0,0,91.207153320313)
- setPedSkin (source, 61)
- setElementVisibleTo ( blipentreg, source, true )
- setElementVisibleTo ( entreg, source, true )
- warpPedIntoVehicle ( source, veh[source] )
- end
- end
- addEventHandler( "onMarkerHit", pilot, trab )
- function trabfim (source)
- if veh[source] and isElement(veh[source]) then
- destroyElement (veh[source])
- givePlayerMoney (source, 3500)
- setElementVisibleTo ( blipentreg, source, false )
- setElementVisibleTo ( entreg, source, false )
- outputChatBox ("#000000| #00FF00Trabalho concluido ! Você recebeu R$: 3500 #000000|", source, 0,0,0,true)
- else
- end
- end
- addEventHandler ("onMarkerHit", entreg, trabfim)
- function quit (source)
- if (veh[source]) and isElement(veh[source]) then
- setElementVisibleTo ( blipentreg, source, false )
- setElementVisibleTo ( entreg, source, false )
- destroyElement (veh[source])
- outputChatBox ("#000000| #FF0000Você perdeu o trabalho ! #000000|", source,0,0,0,true)
- else
- end
- end
- addEventHandler ( "onVehicleExit", getRootElement(), quit )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement