T-Raw/Tyga Posted March 3, 2015 Share Posted March 3, 2015 Well this script is when the criminals kill a police and he is inside the car a marker get created ----Criminal Part---- function mout ( ammo, attacker, weapon, bodypart ) -- if there was an attacker local veh = getPedOccupiedVehicle(source) if ( attacker ) then if isPedInVehicle ( source ) and getTeamName(getPlayerTeam(source)) == "Police" then if ( getElementType ( attacker ) == "player" ) and getTeamName(getPlayerTeam(attacker)) == "Criminals" then theduck = createMarker ( 2449.59375, 2338.9548339844, 10.8203125, "cylinder", 1, 255, 0, 0, 170 ) end end end outputChatBox("Works Fine", attacker, 255, 0, 0) addEventHandler( "onMarkerHit", theduck, floss ) end addEventHandler ( "onPlayerWasted", getRootElement(), mout ) Link to comment
Enargy, Posted March 3, 2015 Share Posted March 3, 2015 Some errors in debugscript? Im at the phone Link to comment
T-Raw/Tyga Posted March 3, 2015 Author Share Posted March 3, 2015 Nothing in debugscript 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