ShaunaV Posted December 8, 2015 Posted December 8, 2015 function cambio(thePlayer, matchingDimension) if isElementWithinMarker (thePlayer, MarkerAmarilo, matchingDimension) then addPedClothes ( thePlayer, "tshirt2horiz", "tshirt2", 3 ) else outputChatBox ("No se pudo poner la ropa", thePlayer, 255, 0, 0) end end addEventHandler("onPlayerMarkerHit",getRootElement(),cambio) function MarkerAmarilo() marker = createMarker (-2522.07715, -657.68250, 146.90631,"cylinder",1.0,250,220,0,250, getRootElement() ) end addEventHandler ( "onResourceStart", getRootElement(), MarkerAmarilo ) I create this script but dont work, who can help me The script is for when a player touches the marker , change clothes. Thanks Scripter MTA DAYZ[*]
RangeR.. Posted December 8, 2015 Posted December 8, 2015 Try removing the function you used for the marker. MTA PLAYER SINCE 2008 Staff at UGC - [uGC]Robin|GIGN Ex Staff AND MEMBER OF WGS(RACE CLAN) EX-OWNER AT POWER-GAMING EX-Leading Staff at SGC EX-FOUNDER of CIG EX-FOUNDER of Sm [stealth] EX-Staff of The Matrix My Community Scripts Private Interiors TIME PLAYED [TAB] Job Command Private Pickups
ShaunaV Posted December 8, 2015 Author Posted December 8, 2015 marker = createMarker (-2522.07715, -657.68250, 146.90631,"cylinder",1.0,250,220,0,250, getRootElement() ) function cambio(thePlayer, matchingDimension) if isElementWithinMarker (thePlayer, MarkerAmarilo, matchingDimension) then addPedClothes ( thePlayer, "tshirt2horiz", "tshirt2", 3 ) else outputChatBox ("No se pudo poner la ropa", thePlayer, 255, 0, 0) end end addEventHandler("onPlayerMarkerHit",getRootElement(),cambio) It doesn´t work Scripter MTA DAYZ[*]
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