nony Posted November 2, 2012 Share Posted November 2, 2012 السلام عليكم ورحمه الله وبركاته يا شباب ابي كود ينقلك من العالم الاصلي الى عالم وهمي مثال ابي ماركرين واحد ينقلك لمحل الاسلحه وواحد يرجعك وابيه مثلا ينقلك لعالم الوهمي رقم 5 ويرجعك العالم الاصلي وبس\ Link to comment
TAPL Posted November 2, 2012 Share Posted November 2, 2012 https://wiki.multitheftauto.com/wiki/SetElementDimension Link to comment
abu5lf Posted November 2, 2012 Share Posted November 2, 2012 انت تقصد المحلات ؟ setElementInterior https://wiki.multitheftauto.com/wiki/Interior_IDs Link to comment
nony Posted November 2, 2012 Author Share Posted November 2, 2012 انت تقصد المحلات ؟ setElementInterior https://wiki.multitheftauto.com/wiki/Interior_IDs يب يب محلات ذذ function inte() setElementInterior ( source, interior, 2233.91, 1714.73, 1011.38 ) ---هنا الاحداثيات الي في الويكي؟ else setElementInterior ( source, 0 ) ---ذا رقم 0 وش فايته؟ addEventHandler ("onMarkerHit", getRootElement(), inte ) https://wiki.multitheftauto.com/wiki/Interior_IDs Link to comment
abu5lf Posted November 2, 2012 Share Posted November 2, 2012 setElementInterior ( player, 1, 289.7870, -35.7190, 1003.5160 ) -- داخل محل setElementInterior ( player, 0 ) -- العالم الخارجي Link to comment
nony Posted November 2, 2012 Author Share Posted November 2, 2012 كذا ذذ؟ ann = createMarker( 286, -42, 1002.5, "arrow", 1, 150, 50, 0, 255 ) setElementInterior ( player, 1, 289.7870, -35.7190, 1003.5160 ) setElementInterior ( player, 0 ) addEventHandler ("onMarkerHit", getRootElement() ,ann ) Link to comment
Blaawee Posted November 2, 2012 Share Posted November 2, 2012 (edited) ann = createMarker( 286, -42, 1002.5, "arrow", 1, 150, 50, 0, 255 ) function onHit() setElementInterior ( localPlayer, 1, 289.7870, -35.7190, 1003.5160 ) setElementInterior ( localPlayer, 0 ) addEventHandler ("onClientMarkerHit", ann, onHit ) Edited November 2, 2012 by Guest Link to comment
abu5lf Posted November 2, 2012 Share Posted November 2, 2012 كذا ذذ؟ ann = createMarker( 286, -42, 1002.5, "arrow", 1, 150, 50, 0, 255 ) setElementInterior ( player, 1, 289.7870, -35.7190, 1003.5160 ) setElementInterior ( player, 0 ) addEventHandler ("onMarkerHit", getRootElement() ,ann ) لا مهب كذا ann = createMarker( 286, -42, 1002.5, "arrow", 1, 150, 50, 0, 255 ) function onHit(player) setElementInterior ( player, 1, 289.7870, -35.7190, 1003.5160 ) setElementInterior ( player, 0 ) addEventHandler ("onClientMarkerHit", ann, onHit ) Link to comment
nony Posted November 2, 2012 Author Share Posted November 2, 2012 عندي سؤال ليش مافي end ann = createMarker( 286, -42, 1002.5, "arrow", 1, 150, 50, 0, 255 ) function onHit() --- مافي اند لهاذي؟ setElementInterior ( localPlayer, 1, 289.7870, -35.7190, 1003.5160 ) setElementInterior ( localPlayer, 0 ) addEventHandler ("onClientMarkerHit", ann, onHit ) Link to comment
Blaawee Posted November 2, 2012 Share Posted November 2, 2012 end تضآف اذا كآن في استثنآء مثآل : ann = createMarker( 286, -42, 1002.5, "arrow", 1, 150, 50, 0, 255 ) function onHit() if ann then setElementInterior ( localPlayer, 1, 289.7870, -35.7190, 1003.5160 ) setElementInterior ( localPlayer, 0 ) end addEventHandler ("onClientMarkerHit", root, onHit ) Link to comment
AhmadQTR Posted November 2, 2012 Share Posted November 2, 2012 ann = createMarker( 286, -42, 1002.5, "arrow", 1, 150, 50, 0, 255 ) function onHit() setElementInterior ( localPlayer, 1, 289.7870, -35.7190, 1003.5160 ) setElementInterior ( localPlayer, 0 ) addEventHandler ("onClientMarkerHit", ann, onHit ) عشان تسكر الفنكشنendنسيت ال Link to comment
AhmadQTR Posted November 2, 2012 Share Posted November 2, 2012 end تضآف اذا كآن في استثنآء مثآل : ann = createMarker( 286, -42, 1002.5, "arrow", 1, 150, 50, 0, 255 ) function onHit() if ann then setElementInterior ( localPlayer, 1, 289.7870, -35.7190, 1003.5160 ) setElementInterior ( localPlayer, 0 ) end addEventHandler ("onClientMarkerHit", root, onHit ) ann = createMarker( 286, -42, 1002.5, "arrow", 1, 150, 50, 0, 255 ) function onHit() if ann then setElementInterior ( localPlayer, 1, 289.7870, -35.7190, 1003.5160 ) setElementInterior ( localPlayer, 0 ) end end addEventHandler ("onClientMarkerHit", root, onHit ) Link to comment
abu5lf Posted November 2, 2012 Share Posted November 2, 2012 end تضآف اذا كآن في استثنآء مثآل : ann = createMarker( 286, -42, 1002.5, "arrow", 1, 150, 50, 0, 255 ) function onHit() if ann then setElementInterior ( localPlayer, 1, 289.7870, -35.7190, 1003.5160 ) setElementInterior ( localPlayer, 0 ) end addEventHandler ("onClientMarkerHit", root, onHit ) function function_name ( args ) body end Link to comment
MR.S3D Posted November 2, 2012 Share Posted November 2, 2012 local ann = createMarker( 286, -42, 1002.5, "arrow", 1, 150, 50, 0, 255 ) function onHit(hitPlaye) if ( hitPlayer == localPlayer ) then if source == ann then setElementInterior ( hitPlayer, 1, 289.7870, -35.7190, 1003.5160 ) setTimer(setElementInterior, 1000, 1,hitPlayer, 0 ) end end end addEventHandler ("onClientMarkerHit", root, onHit Link to comment
Blaawee Posted November 2, 2012 Share Posted November 2, 2012 (edited) local ann = createMarker( 286, -42, 1002.5, "arrow", 1, 150, 50, 0, 255 ) function onHit(hitPlaye) if ( hitPlayer == localPlayer ) then if source == ann then setElementInterior ( hitPlayer, 1, 289.7870, -35.7190, 1003.5160 ) setTimer(setElementInterior, 1000, 1,hitPlayer, 0 ) end end end addEventHandler ("onClientMarkerHit", root, onHit ) -- هنآ نسيت قوس هههههههههه Edited November 2, 2012 by Guest Link to comment
MR.S3D Posted November 2, 2012 Share Posted November 2, 2012 local ann = createMarker( 286, -42, 1002.5, "arrow", 1, 150, 50, 0, 255 ) function onHit(hitPlaye) if ( hitPlayer == localPlayer ) then if source == ann then setElementInterior ( hitPlayer, 1, 289.7870, -35.7190, 1003.5160 ) setTimer(setElementInterior, 1000, 1,hitPlayer, 0 ) end end end addEventHandler ("onClientMarkerHit", root, onHit) 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