Jump to content

Ped problem


TheIceman1

Recommended Posts

Nothing happens.

  
brped = createPed ( 150,359.7, 173.85, 1008.39 ) 
setElementInterior ( brped, 3 ) 
setElementRotation ( brped, 0, 0, 270 ) 
  
function startbr () 
    local team = getPlayerTeam(source) 
if team and team == getTeamFromName("Criminal") then 
 setPlayerWantedLevel ( source, 6 ) 
 setElementData ( source, "brstart", "true" )        
end 
end 
addEventHandler ( "onPedWasted", brped, startbr ) 
  

Edited by Guest
Link to comment
Nothing happens.
  
brped = createPed ( 150,359.7, 173.85, 1008.39 ) 
setElementInterior ( brped, 3 ) 
setElementRotation ( brped, 0, 0, 270 ) 
  
function startbr () 
    local team = getPlayerTeam(player) 
if team and team == getTeamFromName("Criminal") then 
 setPlayerWantedLevel ( source, 6 ) 
 setElementData ( source, "brstart", "true" )        
end 
end 
addEventHandler ( "onPedWasted", brped, startbr ) 
  

player is not defined.

Link to comment
Nothing happens.
  
brped = createPed ( 150,359.7, 173.85, 1008.39 ) 
setElementInterior ( brped, 3 ) 
setElementRotation ( brped, 0, 0, 270 ) 
  
function startbr () 
    local team = getPlayerTeam(source) 
if team and team == getTeamFromName("Criminal") then 
 setPlayerWantedLevel ( source, 6 ) 
 setElementData ( source, "brstart", "true" )        
end 
end 
addEventHandler ( "onPedWasted", brped, startbr ) 
  

player is not defined.

Again,i cant kill ped.

Link to comment

Not sure about the setElementData, But try :

brped = createPed ( 150,359.7, 173.85, 1008.39 ) 
setElementInterior ( brped, 3 ) 
setElementRotation ( brped, 0, 0, 270 ) 
  
function startbr ( killer ) 
    local team = getPlayerTeam( killer ) 
    if team and team == getTeamFromName( "Criminal" ) then 
        setPlayerWantedLevel ( killer, 6 ) 
        setElementData ( killer, "brstart", "true" )       
    end 
end 
addEventHandler ( "onPedWasted", brped, startbr ) 

Link to comment
Not sure about the setElementData, But try :
brped = createPed ( 150,359.7, 173.85, 1008.39 ) 
setElementInterior ( brped, 3 ) 
setElementRotation ( brped, 0, 0, 270 ) 
  
function startbr ( killer ) 
    local team = getPlayerTeam( killer ) 
    if team and team == getTeamFromName( "Criminal" ) then 
        setPlayerWantedLevel ( killer, 6 ) 
        setElementData ( killer, "brstart", "true" )       
    end 
end 
addEventHandler ( "onPedWasted", brped, startbr ) 

The first parameter isn't the killer element.

Link to comment
Not sure about the setElementData, But try :
brped = createPed ( 150,359.7, 173.85, 1008.39 ) 
setElementInterior ( brped, 3 ) 
setElementRotation ( brped, 0, 0, 270 ) 
  
function startbr ( killer ) 
    local team = getPlayerTeam( killer ) 
    if team and team == getTeamFromName( "Criminal" ) then 
        setPlayerWantedLevel ( killer, 6 ) 
        setElementData ( killer, "brstart", "true" )       
    end 
end 
addEventHandler ( "onPedWasted", brped, startbr ) 

The first parameter isn't the killer element.

LooL, I forget .

Thanx ..

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