Jump to content

طلب فنكش


Recommended Posts

السلام عليكم ورحمه الله وبركاته

شباب مطلوب فنكش مقلا اعضاء قروبي يفوتو على محل الاسلحه ويشترو منه ذا بمقر فلاب جاك ومبمور برنس لارمي فيه منه ممكن الفنكش

Link to comment

كذا يصير الكود

[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
كذا يصير الكود
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
السلام عليكم ورحمه الله وبركاته

شباب مطلوب فنكش مقلا اعضاء قروبي يفوتو على محل الاسلحه ويشترو منه ذا بمقر فلاب جاك ومبمور برنس لارمي فيه منه ممكن الفنكش

انت لا اخذت الاي تبي تمسح الموضوع لذالك عملت اقتباس ل موضوعكك عباطةةة

Link to comment
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
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

صحيح لازم احط الاحدائيات بس فيه اكس وواي وزيد ثاني وين احطهم شوفو

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...