DomenicDemon Posted July 12, 2022 Share Posted July 12, 2022 hello i need script when player hit the marker they get 100Hp And 100 Armor i try to find it in forums and ... but they didint Work any one can help me and write it for me plz? Link to comment
Flashmyname Posted July 12, 2022 Share Posted July 12, 2022 Hi, here you go. - You need to use an EventHandler to make this work. local myMarker = createMarker ( xyz, "cylinder", 1, 255, 255, 0, 170 ) -- replace xyz with your exact coordinates. function giveMedicals(hitplayer, dimension) if isElement(hitplayer) and getElementType(hitplayer) == "player" then setElementHealth(hitplayer, 100) setPedArmor(hitplayer, 100) end end addEventHandler( "onMarkerHit", myMarker, giveMedicals ) 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