TheIceman1 Posted March 10, 2013 Share Posted March 10, 2013 Why i cant kill this ped? brped = createPed ( 150,359.7, 173.85, 1008.39 ) setElementInterior ( brped, 3 ) setElementRotation ( brped, 0, 0, 270 ) setPedFrozen ( brped, true ) Link to comment
Sasu Posted March 10, 2013 Share Posted March 10, 2013 Because its frozen I supossed. Link to comment
TheIceman1 Posted March 10, 2013 Author Share Posted March 10, 2013 (edited) 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 March 10, 2013 by Guest Link to comment
iPrestege Posted March 10, 2013 Share Posted March 10, 2013 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
TheIceman1 Posted March 10, 2013 Author Share Posted March 10, 2013 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
PaiN^ Posted March 10, 2013 Share Posted March 10, 2013 I can't understand what you're trying to do ..! Link to comment
TheIceman1 Posted March 10, 2013 Author Share Posted March 10, 2013 When i kill "brped" then i start rob the bank.But i cant kill ped. Link to comment
PaiN^ Posted March 10, 2013 Share Posted March 10, 2013 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
TheIceman1 Posted March 10, 2013 Author Share Posted March 10, 2013 Again i cant kill ped. Link to comment
iPrestege Posted March 10, 2013 Share Posted March 10, 2013 Why you can't do you add any function make player's can't kill ped?or cancelEvent as will? or what the problem? any error? Link to comment
Anderl Posted March 10, 2013 Share Posted March 10, 2013 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
iPrestege Posted March 10, 2013 Share Posted March 10, 2013 I found problem what is it? Link to comment
PaiN^ Posted March 10, 2013 Share Posted March 10, 2013 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
TheIceman1 Posted March 10, 2013 Author Share Posted March 10, 2013 I found problem what is it? I have god mode script(but only for admins). Link to comment
iPrestege Posted March 10, 2013 Share Posted March 10, 2013 So it won't kill the ped! 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