Mahmood Top Posted November 11, 2012 Share Posted November 11, 2012 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
./BlackBird# Posted November 11, 2012 Share Posted November 11, 2012 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
Tete omar Posted November 12, 2012 Share Posted November 12, 2012 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
./BlackBird# Posted November 12, 2012 Share Posted November 12, 2012 انا ناسخ كوده هو الي حاطه و انا سويت الي يبيه 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