Advertisement
Noneatme

Untitled

Nov 23rd, 2012
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.03 KB | None | 0 0
  1. ---------------------------------
  2. -- COPYRIGHT[C], NOVEMBER 2012 --
  3. ------- MADE BY NONEATME --------
  4. ---------------------------------
  5.  
  6. local cFunc = {}
  7. local cSetting = {}
  8.  
  9. addEvent("startPlayerMission", true)
  10.  
  11. local mission = 3
  12.  
  13. -- FUNCTIONS --
  14.  
  15. cFunc["schliesseMissionAb"] = function()
  16.     toggleAllControls(true)
  17.     setCameraTarget(localPlayer)
  18.     applyDialog("He's death. I need to go to the Barkeeperin!", 10000)
  19.     setElementData(localPlayer, "mission3:finish", true)
  20. end
  21.  
  22.  
  23. cFunc["missionHandler"] = function(id)
  24.     if(id == mission) then
  25.         applyDialog("Barkeepein: I don't know what is happening. Please go to the farm and find Mr.Zett!", 10000)
  26.         cSetting["missionBlip"] = createBlip(-94.104049682617, -45.418796539307, 3.1171875, 0, 2, 255, 0, 0, 255, 0, 9999.0)
  27.         cSetting["missionCol"] = createColSphere(-94.104049682617, -45.418796539307, 3.1171875, 10)
  28.         cSetting["dr.zett"] = createPed(161, -94.104049682617, -45.418796539307, 3.1171875)
  29.         cSetting["tractor"] = createVehicle(getVehicleModelFromName("Tractor"), -102.14572906494, -54.168914794922, 3.1522579193115, 0, 0, 196)
  30.         setElementDimension(cSetting["dr.zett"], getMyID())
  31.         setElementDimension(cSetting["missionCol"], getMyID())
  32.         setElementDimension(cSetting["missionBlip"], getMyID())
  33.         setElementDimension(cSetting["tractor"], getMyID())
  34.         setElementHealth(cSetting["dr.zett"], 0)
  35.         addEventHandler("onClientColShapeHit", cSetting["missionCol"], function(he)
  36.             if(he == localPlayer) and (getAviableZombies() < 1) then
  37.                 destroyElement(cSetting["missionBlip"])
  38.                 destroyElement(cSetting["missionCol"])
  39.                 local x, y, z, x2, y2, z2 = getCameraMatrix()
  40.                 smoothMoveCamera(x, y, z, x2, y2, z2,-95.978645324707, -46.163200378418, 3.1171875, -94.104049682617, -45.418796539307, 2.1171875, 1000)
  41.                 toggleAllControls(false)
  42.                 applyDialog("Alan: Shit!", 1000)
  43.                 setTimer(cFunc["schliesseMissionAb"], 3000, 1)
  44.             end
  45.         end)
  46.     end
  47. end
  48.  
  49. -- EVENT HANDLERS --
  50.  
  51. addEventHandler("startPlayerMission", getLocalPlayer(), cFunc["missionHandler"])
  52.  
  53. -- BAD EFFECT --
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement