Ra7sErEom Posted April 20, 2014 Share Posted April 20, 2014 السلام عليكم ورحمه الله وبركاته شباب مطلوب فنكش مقلا اعضاء قروبي يفوتو على محل الاسلحه ويشترو منه ذا بمقر فلاب جاك ومبمور برنس لارمي فيه منه ممكن الفنكش Link to comment
shwaeki Posted April 20, 2014 Share Posted April 20, 2014 createMarker onMarkerHit getElementType setElementPosition setElementInterior Link to comment
Ra7sErEom Posted April 20, 2014 Author Share 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 ) صح ولا لا؟ Link to comment
i,xAhmed Posted April 20, 2014 Share 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% غغلط Link to comment
Ra7sErEom Posted April 20, 2014 Author Share Posted April 20, 2014 يب بس انا عا شوف الكودات قبل Link to comment
aL.Kfo Posted April 20, 2014 Share Posted April 20, 2014 السلام عليكم ورحمه الله وبركاتهشباب مطلوب فنكش مقلا اعضاء قروبي يفوتو على محل الاسلحه ويشترو منه ذا بمقر فلاب جاك ومبمور برنس لارمي فيه منه ممكن الفنكش انت لا اخذت الاي تبي تمسح الموضوع لذالك عملت اقتباس ل موضوعكك عباطةةة Link to comment
ahmed1010 Posted April 21, 2014 Share 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 ) Link to comment
The Killer Posted April 21, 2014 Share 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) Link to comment
abu5lf Posted April 21, 2014 Share Posted April 21, 2014 والدرعمة مايفيد X نظام ال ^ حط له وين خطاه عشان مايغلط ! مرة ثانية Link to comment
™!>VàLéNTiNô<!™ Posted April 21, 2014 Share Posted April 21, 2014 ملحوظة كلمة Group فى الداتا هنا ممكن ماتكون صحيحة ممكن تكون مثل قيم مود احمد فيف gang فجربهم الاتنين اخى Link to comment
The Killer Posted April 21, 2014 Share Posted April 21, 2014 والدرعمة مايفيد X نظام ال ^حط له وين خطاه عشان مايغلط ! مرة ثانية اتوقع يعرف يقرا هو , والكود قدامه يقارن بينهم ويشوف وين اخطائه واتوقع كذا يتعلم احسن Link to comment
Ra7sErEom Posted April 21, 2014 Author Share 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) Link to comment
Ra7sErEom Posted April 21, 2014 Author Share Posted April 21, 2014 ولا ذيك بس تروح على الماركر وثانيه عشان تدخل وتشتري صح كلامي؟ Link to comment
The Killer Posted April 22, 2014 Share Posted April 22, 2014 تحطها في محل الاسلحه , المكان حق محل الاسلحه انسخ احداثياته 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