AL-SAYED Posted October 3, 2012 Share Posted October 3, 2012 بغيت كود توزيع الاسلحه على فريق واحد Link to comment
./BlackBird# Posted October 3, 2012 Share Posted October 3, 2012 يعني اذا اللاعب بقريق معين ياخذ سلاح؟ giveWeapon Link to comment
AL-SAYED Posted October 3, 2012 Author Share Posted October 3, 2012 مثلا انت في فريق الشرطة توزع عليهم اسلحه يواسطة كلمة تكتبها في f8 Link to comment
xTeacherx Posted October 3, 2012 Share Posted October 3, 2012 function gimmeATeam ( source, commandName, teamName ) local newTeam = createTeam ( teamName ) -- create a new team with the specified name if newTeam then -- if it was successfully created giveWeapon ( source, 31, 200 ) -- Gives the M4 weapon with 200 ammo end end addCommandHandler("giveteam", gimmeATeam) Link to comment
TAPL Posted October 3, 2012 Share Posted October 3, 2012 مثلا انت في فريق الشرطة توزع عليهم اسلحه يواسطة كلمة تكتبها في f8 addCommandHandler("gw", function(player, cmd, id, amount) local Team = getPlayerTeam(player) if Team and id and amount then for i, players in ipairs(getElementsByType("player")) do if Team == getPlayerTeam(players) then giveWeapon(players, tonumber(id), tonumber(amount)) end end end end) Link to comment
AL-SAYED Posted October 3, 2012 Author Share Posted October 3, 2012 addCommandHandler("gw", function(player, cmd, id, amount) local Team = getPlayerTeam(player) if Team and id and amount then for i, players in ipairs(getElementsByType("player")) do if Team == getPlayerTeam(players) then giveWeapon(players, tonumber(43), tonumber(1000)) end end end end) هذا الا عطاني اياه تابل Link to comment
3NAD Posted October 3, 2012 Share Posted October 3, 2012 addCommandHandler("gw", function(player, cmd, id, amount) local Team = getPlayerTeam(player) if Team and id and amount then for i, players in ipairs(getElementsByType("player")) do if Team == getPlayerTeam(players) then giveWeapon(players, tonumber(43), tonumber(1000)) end end end end) هذا الا عطاني اياه تابل هو ماعطاكـ إياه بـ الأرقام : / خذ الكود الأصلي واكتب gw 43 1000 بـ الكونسول . . أو إسأل صآحب الكود # Link to comment
TAPL Posted October 3, 2012 Share Posted October 3, 2012 أنا مسوي الكود بحيث أنك تقدر تتحكم في السلاح الي تبي تعطيه للتيم الي انت فيه + تتحكم في عدد الذخيره طريقة الأستخدام gw مثال مع ذخيره 500 M4 أعطاء سلاح F8 في gw 31 500 ================================= أرقام الأسلحة تلقاها هنا https://wiki.multitheftauto.com/wiki/Weapons Link to comment
AL-SAYED Posted October 4, 2012 Author Share Posted October 4, 2012 شلون اخليه يطلع في الجات مثلا ha7soon قد وزع m4 Link to comment
TAPL Posted October 4, 2012 Share Posted October 4, 2012 شلون اخليه يطلع في الجات مثلاha7soon قد وزع m4 addCommandHandler("gw", function(player, cmd, id, amount) local Team = getPlayerTeam(player) if Team and id and amount then local WeaponName = getWeaponNameFromID(tonumber(id)) for i, players in ipairs(getElementsByType("player")) do if Team == getPlayerTeam(players) then giveWeapon(players, tonumber(id), tonumber(amount)) outputChatBox(getPlayerName(player).." has give you "..WeaponName.." !", players, 255,255,255,true) end end end end) Link to comment
|Mr|-Talal07-| Posted June 20, 2013 Share Posted June 20, 2013 يااا نوب انت قولت فريق محدد هنا الفريق المحدد بلير -_-" الكود صح ليش الفلسفه Link to comment
./BlackBird# Posted June 20, 2013 Share Posted June 20, 2013 يااا نوب انت قولت فريق محدد هنا الفريق المحدد بلير -_-" Oct 03, 2012 Link to comment
AL-SAYED Posted June 20, 2013 Author Share Posted June 20, 2013 خخخخخخخخخخخخخخخخخخخخ 2012 بس كذا شوي الغبار المفروض ازيد Link to comment
jafar Posted June 20, 2013 Share Posted June 20, 2013 بآآآآآآآآآآآآآآل أي نوب مطلع الموضوع غبار on Wed Oct 03, 2012 3:25 pm Link to comment
yazan Posted June 23, 2013 Share Posted June 23, 2013 والله دورت على اكثر ما لقيت هههههههه الحين بروح اعمل غبار كثير و اصوره 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