kamel10 Posted July 19, 2014 Share Posted July 19, 2014 ابي اللاعب ما يقدر يا خذ الشنطة بالسيارة يعني ما ابيه لما يكون في السيارة ويروح فوقها يخذها addEventHandler("onMarkerHit",root, function (player) if ( source == mar ) then if getPlayerTeam and getTeamName ( getPlayerTeam ( player ) ) == 'No Team' then if getElementType(player) == "player" then local x,y,z = getElementPosition(player) local data = getElementData(mar,"num") local data = tonumber(data) destroyElement(mar) destroyElement(ob) destroyElement(bl) killTimer(time) setElementData(player,"bag",true) atBag = createObject(1210,x,y,z) setElementData(atBag,"num",data) exports.bone_attach:attachElementToBone(atBag,player,12,0,0.05,0.27,0,180,0) bli = createBlipAttachedTo(player,17) attachedMarker = createMarker(x, y, z, "corona", 1, 255, 0, 255, 150) attachElements(attachedMarker, player, 0, 0, 0) exports.guimessages:sendClientMessage("* #ffffff[ #ff0000" .. getPlayerName(player) .. "#ffffff ]#0069c7 Has Take The Bag",root,0,255,0,true) marker = createMarker(mark[data][1],mark[data][2],mark[data][3],"cylinder",1.5,255,255,0,255,player) marBli = createBlipAttachedTo(marker,12,2,255,0,0,255,0,99999.0,player) end end end end ) Link to comment
iMr.TZ[W]ER Posted July 19, 2014 Share Posted July 19, 2014 https://wiki.multitheftauto.com/wiki/OnVehicleEnter Link to comment
kamel10 Posted July 19, 2014 Author Share Posted July 19, 2014 مسويه يعني لما ما يكون راكب في السيارة لما يضغط انتر مايركب مسويها بس في مشكلة لما يروح فوق الشنطة بالسيارة ياخذها Link to comment
kamel10 Posted July 19, 2014 Author Share Posted July 19, 2014 addEventHandler("onMarkerHit",root, function (player) if ( source == mar ) then if getPlayerTeam and getTeamName ( getPlayerTeam ( player ) ) == 'No Team' then if getElementType(player) == "player" then if not isPedInVehicle then local x,y,z = getElementPosition(player) local data = getElementData(mar,"num") local data = tonumber(data) destroyElement(mar) destroyElement(ob) destroyElement(bl) killTimer(time) setElementData(player,"bag",true) atBag = createObject(1210,x,y,z) setElementData(atBag,"num",data) exports.bone_attach:attachElementToBone(atBag,player,12,0,0.05,0.27,0,180,0) bli = createBlipAttachedTo(player,17) attachedMarker = createMarker(x, y, z, "corona", 1, 255, 0, 255, 150) attachElements(attachedMarker, player, 0, 0, 0) exports.guimessages:sendClientMessage("* #ffffff[ #ff0000" .. getPlayerName(player) .. "#ffffff ]#0069c7 Has Take The Bag",root,0,255,0,true) marker = createMarker(mark[data][1],mark[data][2],mark[data][3],"cylinder",1.5,255,255,0,255,player) marBli = createBlipAttachedTo(marker,12,2,255,0,0,255,0,99999.0,player) end end end end ) ماكس تقصد كدة صح ؟ Link to comment
hassan.k.s.a Posted July 19, 2014 Share Posted July 19, 2014 addEventHandler("onMarkerHit",root,function (player) if ( source == mar ) then if ( getElementType(player) == "player" ) then if getPlayerTeam and getTeamName ( getPlayerTeam ( player ) ) == 'No Team' then if not isPedInVehicle(player) then local x,y,z = getElementPosition(player) local data = getElementData(mar,"num") local data = tonumber(data) destroyElement(mar) destroyElement(ob) destroyElement(bl) killTimer(time) setElementData(player,"bag",true) atBag = createObject(1210,x,y,z) setElementData(atBag,"num",data) exports.bone_attach:attachElementToBone(atBag,player,12,0,0.05,0.27,0,180,0) bli = createBlipAttachedTo(player,17) attachedMarker = createMarker(x, y, z, "corona", 1, 255, 0, 255, 150) attachElements(attachedMarker, player, 0, 0, 0) exports.guimessages:sendClientMessage("* #ffffff[ #ff0000" .. getPlayerName(player) .. "#ffffff ]#0069c7 Has Take The Bag",root,0,255,0,true) marker = createMarker(mark[data][1],mark[data][2],mark[data][3],"cylinder",1.5,255,255,0,255,player) marBli = createBlipAttachedTo(marker,12,2,255,0,0,255,0,99999.0,player) end end end end end) 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