Jump to content

Alguém pode me ajudar com esse erro?


Recommended Posts

addEventHandler ("onPlayerWasted",getRootElement(), 
function(totalammo,killer,killwerweapon,bodypart,stealth) 
  local x,y,z = getElementPosition (source) 
  local sf = getDistanceBetweenPoints3D (x,y,z,-2655.1,639.46,14.454) 
  local lv = getDistanceBetweenPoints3D (x,y,z,1607.2,1816.2,10.9) 
  local ls = getDistanceBetweenPoints3D (x,y,z,2035.99,-1403.7,17.2) 
  if (sf < ls) then 
      setTimer (fadeCamera,1000,1,source,false,2.5)  
      setTimer (spawnPlayer,3500,1,source,-2655.1,639.46,14.454,0,getElementModel (source),0,0,nil)  
      setTimer (fadeCamera,4000,1,source,true,1.0) 
    else 
      setTimer (fadeCamera,1000,1,source,false,2.5)  
      setTimer (spawnPlayer,3500,1,source,2035.99,-1403.7,17.2,0,getElementModel (source),0,0,nil)  
      setTimer (fadeCamera,4000,1,source,true,1.0) 
  end 
  if (lv < ls) then 
      setTimer (fadeCamera,1000,1,source,false,2.5)  
      setTimer (spawnPlayer,3500,1,source,1607.2,1816.2,10.8,0,getElementModel (source),0,0,nil)  
      setTimer (fadeCamera,4000,1,source,true,1.0) 
    else 
      setTimer (fadeCamera,1000,1,source,false,2.5)  
      setTimer (spawnPlayer,3500,1,source,2035.99,-1403.7,17.2,0,getElementModel (source),0,0,nil)  
      setTimer (fadeCamera,4000,1,source,true,1.0) 
  end 
  if (sf < lv) then 
      setTimer (fadeCamera,1000,1,source,false,2.5)  
      setTimer (spawnPlayer,3500,1,source,-2655.1,639.46,14.454,0,getElementModel (source),0,0,nil)  
      setTimer (fadeCamera,4000,1,source,true,1.0) 
    else 
      setTimer (fadeCamera,1000,1,source,false,2.5)  
      setTimer (spawnPlayer,3500,1,source,1607.2,1816.2,10.8,0,getElementModel (source),0,0,nil)  
      setTimer (fadeCamera,4000,1,source,true,1.0) 
  end 
end 
) 

Link to comment
addEventHandler ("onPlayerWasted",getRootElement(), 
function(totalammo,killer,killwerweapon,bodypart,stealth) 
  local x,y,z = getElementPosition (source) 
  local sf = getDistanceBetweenPoints3D (x,y,z,-2655.1,639.46,14.454) 
  local lv = getDistanceBetweenPoints3D (x,y,z,1607.2,1816.2,10.9) 
  local ls = getDistanceBetweenPoints3D (x,y,z,2035.99,-1403.7,17.2) 
  if (sf < ls) then 
      setTimer (fadeCamera,1000,1,source,false,2.5)  
      setTimer (spawnPlayer,3500,1,source,-2655.1,639.46,14.454,0,getElementModel (source),0,0,nil)  
      setTimer (fadeCamera,4000,1,source,true,1.0) 
    else 
      setTimer (fadeCamera,1000,1,source,false,2.5)  
      setTimer (spawnPlayer,3500,1,source,2035.99,-1403.7,17.2,0,getElementModel (source),0,0,nil)  
      setTimer (fadeCamera,4000,1,source,true,1.0) 
  end 
  if (lv < ls) then 
      setTimer (fadeCamera,1000,1,source,false,2.5)  
      setTimer (spawnPlayer,3500,1,source,1607.2,1816.2,10.8,0,getElementModel (source),0,0,nil)  
      setTimer (fadeCamera,4000,1,source,true,1.0) 
    else 
      setTimer (fadeCamera,1000,1,source,false,2.5)  
      setTimer (spawnPlayer,3500,1,source,2035.99,-1403.7,17.2,0,getElementModel (source),0,0,nil)  
      setTimer (fadeCamera,4000,1,source,true,1.0) 
  end 
  if (sf < lv) then 
      setTimer (fadeCamera,1000,1,source,false,2.5)  
      setTimer (spawnPlayer,3500,1,source,-2655.1,639.46,14.454,0,getElementModel (source),0,0,nil)  
      setTimer (fadeCamera,4000,1,source,true,1.0) 
    else 
      setTimer (fadeCamera,1000,1,source,false,2.5)  
      setTimer (spawnPlayer,3500,1,source,1607.2,1816.2,10.8,0,getElementModel (source),0,0,nil)  
      setTimer (fadeCamera,4000,1,source,true,1.0) 
  end 
end 
) 

Opa vlw cara! Consegui, vlw mesmo :D

Link to comment

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...