Ra7sErEom Posted April 20, 2014 Posted April 20, 2014 السلام عليكم ورحمه الله وبركاته شباب مطلوب فنكش مقلا اعضاء قروبي يفوتو على محل الاسلحه ويشترو منه ذا بمقر فلاب جاك ومبمور برنس لارمي فيه منه ممكن الفنكش
shwaeki Posted April 20, 2014 Posted April 20, 2014 createMarker onMarkerHit getElementType setElementPosition setElementInterior
Ra7sErEom Posted April 20, 2014 Author Posted April 20, 2014 كذا يصير الكود [lua]marker = createMarker ( x,y,z, "cylinder", 2, 255, 0, 255, 255 ) function MarkerHit( hitElement, matchingDimension ) -- define MarkerHit function for the handler local elementType = getElementType( hitElement ) -- get the hit element's type function onPlayerTarget ( targetElem ) -- if the targeted object is a haystack (an object with model ID 3374) remove it from the game if getElementType ( targetElem ) == "object" and getElementModel ( targetElem ) == 3374 then destroyElement ( targetElem ) end end addEventHandler ( "onPlayerTarget", getRootElement(), onPlayerTarget ) -- add above function as handler for targeting event كلنت function interior ( commandName, interior ) --Let's see if they gave a interior ID if ( interior ) then --They did, so let's assign them to that interior and teleport them there (all in 1 function call!) setElementInterior ( getLocalPlayer(), interior, 2233.91, 1714.73, 1011.38 ) else --They didn't give one, so set them to the interior they wanted, but don't teleport them. setElementInterior ( getLocalPlayer(), 0 ) end end addCommandHandler ( "interior", interior ) صح ولا لا؟
i,xAhmed Posted April 20, 2014 Posted April 20, 2014 كذا يصير الكود marker = createMarker ( x,y,z, "cylinder", 2, 255, 0, 255, 255 ) function MarkerHit( hitElement, matchingDimension ) -- define MarkerHit function for the handler local elementType = getElementType( hitElement ) -- get the hit element's type function onPlayerTarget ( targetElem ) -- if the targeted object is a haystack (an object with model ID 3374) remove it from the game if getElementType ( targetElem ) == "object" and getElementModel ( targetElem ) == 3374 then destroyElement ( targetElem ) end end addEventHandler ( "onPlayerTarget", getRootElement(), onPlayerTarget ) -- add above function as handler for targeting event كلنت function interior ( commandName, interior ) --Let's see if they gave a interior ID if ( interior ) then --They did, so let's assign them to that interior and teleport them there (all in 1 function call!) setElementInterior ( getLocalPlayer(), interior, 2233.91, 1714.73, 1011.38 ) else --They didn't give one, so set them to the interior they wanted, but don't teleport them. setElementInterior ( getLocalPlayer(), 0 ) end end addCommandHandler ( "interior", interior ) صح ولا لا؟ ماشاء الله نظام انسخ والصق من آلويكي كودك يمكن غلط ويمكن لا بس انت ناسخ وبنسبة 90% غغلط Server:Wnash-Time Ip:mtasa://178.32.127.216:22003
aL.Kfo Posted April 20, 2014 Posted April 20, 2014 السلام عليكم ورحمه الله وبركاتهشباب مطلوب فنكش مقلا اعضاء قروبي يفوتو على محل الاسلحه ويشترو منه ذا بمقر فلاب جاك ومبمور برنس لارمي فيه منه ممكن الفنكش انت لا اخذت الاي تبي تمسح الموضوع لذالك عملت اقتباس ل موضوعكك عباطةةة
ahmed1010 Posted April 21, 2014 Posted April 21, 2014 marker = createMarker ( y , x , z ) function aaaa (thePlayer) addEventHandler ( "onMarkerHit" , marker , aaaa if getElementData(thePlayer, "Group") == "Group Name" then if not isPedInVehicle(thePlayer) then setElementInterior ( thePlayer, Interior ) setElementPosition ( thePlayer, x , y , z ) end end end ) Name in The Game : =[ AhMeD10__10 ]= Level in Scripting : 7% Level in MTA : 100% Level in V.B Programer : 100% PhotoShop : 100%
The Killer Posted April 21, 2014 Posted April 21, 2014 marker = createMarker ( y , x , z ) function aaaa (thePlayer) addEventHandler ( "onMarkerHit" , marker , aaaa if getElementData(thePlayer, "Group") == "Group Name" then if not isPedInVehicle(thePlayer) then setElementInterior ( thePlayer, Interior ) setElementPosition ( thePlayer, x , y , z ) end end end ) X local marker = createMarker (x,y,z, "cylinder", 2, 255, 0, 0) addEventHandler ("onMarkerHit", marker, function (player) if getElementType (player) == "player" and not isPedInVehicle (player) then if getElementData (player, "Group") == "Group Name" then setElementPosition (player, x,y,z) setElementInterior (player, interior) end end end)
abu5lf Posted April 21, 2014 Posted April 21, 2014 والدرعمة مايفيد X نظام ال ^ حط له وين خطاه عشان مايغلط ! مرة ثانية ╔═╦╦╦╗╔╦═╦═╦═╦═╦╦╦╦╦╦╦═╦╦╦╦╗ ║║║║║╠╝║║╚╣║║║║║║║║║║║║║║║║║ ║║║║║╚╦╦═╦╦╦╦╣║║║║║║║║║║║║║║ ║║║║╠═╣╠╝╔══╝║║║║║╟╢║║║║║╟╢║ ╚╩══╩══╩═╩═══╩╩══╩╩═╩╩╩═╩╩═╝ «سبحانك اللهم وبحمدك أشهد أن لا إله إلا أنت أستغفرك وأتوب إليك» M7mdAl7arthy : لتواصل سكايب
™!>VàLéNTiNô<!™ Posted April 21, 2014 Posted April 21, 2014 ملحوظة كلمة Group فى الداتا هنا ممكن ماتكون صحيحة ممكن تكون مثل قيم مود احمد فيف gang فجربهم الاتنين اخى https://sphinx4host.net أفضل وأرخص موقع لبيع الخوادم وسيرفرات الألعاب وشحن البنوك الإلكترونية شهادة أمان _ موثوق
The Killer Posted April 21, 2014 Posted April 21, 2014 والدرعمة مايفيد X نظام ال ^حط له وين خطاه عشان مايغلط ! مرة ثانية اتوقع يعرف يقرا هو , والكود قدامه يقارن بينهم ويشوف وين اخطائه واتوقع كذا يتعلم احسن
Ra7sErEom Posted April 21, 2014 Author Posted April 21, 2014 صحيح لازم احط الاحدائيات بس فيه اكس وواي وزيد ثاني وين احطهم شوفو local marker = createMarker (x,y,z, "cylinder", 2, 255, 0, 0) addEventHandler ("onMarkerHit", marker, function (player) if getElementType (player) == "player" and not isPedInVehicle (player) then if getElementData (player, "Group") == "Group Name" then setElementPosition (player, x,y,z)_____________وين احط ذا الاكس ولواي وزيد لازم يكون بس واحد مو اثنتين setElementInterior (player, interior) end end end)
Ra7sErEom Posted April 21, 2014 Author Posted April 21, 2014 ولا ذيك بس تروح على الماركر وثانيه عشان تدخل وتشتري صح كلامي؟
The Killer Posted April 22, 2014 Posted April 22, 2014 تحطها في محل الاسلحه , المكان حق محل الاسلحه انسخ احداثياته
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