kevin11 Posted May 22, 2010 Share Posted May 22, 2010 this is what i have (not made by me) but how can i add a jetpack like on markerhit then ur jetpack = disabled function markerHit (hitPlayer, matchingDimension) if (source == hayMarker) then if (getElementType (hitPlayer) == "player") then toggleControl (hitPlayer, "fire", false) toggleControl (hitPlayer, "next_weapon", false) toggleControl (hitPlayer, "previous_weapon", false) toggleControl (hitPlayer, "aim_weapon", false) toggleControl (hitPlayer, "vehicle_fire", false) toggleControl (hitPlayer, "vehicle_secondarry_fire", false) toggleControl (hitPlayer, "vehicle_fire", false) showPlayerHudComponent (hitPlayer, "ammo", false) showPlayerHudComponent (hitPlayer, "weapon", false) elseif (getElementType (hitPlayer) == "vehicle") then destroyElement (hitPlayer) end end end addEventHandler ("onMarkerHit", getRootElement(), markerHit) 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