Jump to content

مساعدة


Recommended Posts

  
CreateTeam = createTeam ("team",0,150,255) 
  
-- 
  
    function Team( thePlayer ) 
  
        setPlayerTeam ( thePlayer, CreateTeam ) 
  
    setElementPosition ( thePlayer, 1657.5913085938, -1700.5102539063,20.484375 ) 
  
setPedSkin ( thePlayer, 217 )  
  
giveWeapon ( thePlayer, id, ammo ) 
  
    end 
  
addCommandHandler("join",Team) 

في هذا الكود اذا تكتب كلمة في اف8 ينقلك لفريق معين

وانا ابغي قروب معين يقوم بهذا الشي مثلا ابي قروب المودوريتور بس الي يقدر يدش الفريق ممكن

وشكرا مقدم

Link to comment
      
    CreateTeam = createTeam ("team",0,150,255) 
      
    -- 
      
        function Team( thePlayer ) 
     local accName = getAccountName ( getPlayerAccount ( thePlayer ) )  
     if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Moderator" ) ) then 
            setPlayerTeam ( thePlayer, CreateTeam ) 
      
        setElementPosition ( thePlayer, 1657.5913085938, -1700.5102539063,20.484375 ) 
      
    setPedSkin ( thePlayer, 217 ) 
      
    giveWeapon ( thePlayer, id, ammo ) 
      
        end 
end 
      
    addCommandHandler("join",Team) 

Link to comment
      
    CreateTeam = createTeam ("team",0,150,255) 
      
    -- 
      
        function Team( thePlayer ) 
     local accName = getAccountName ( getPlayerAccount ( thePlayer ) )  
     if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Moderator" ) ) then 
            setPlayerTeam ( thePlayer, CreateTeam ) 
      
        setElementPosition ( thePlayer, 1657.5913085938, -1700.5102539063,20.484375 ) 
      
    setPedSkin ( thePlayer, 217 ) 
      
    giveWeapon ( thePlayer, id, ammo ) 
      
        end 
end 
      
    addCommandHandler("join",Team) 

id, ammo ?

وين تعريف الاي دي والاموو ذولي هنا

giveWeapon ( thePlayer, id, ammo ) 

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...