Jump to content

طلب مود


Recommended Posts

بسم الله الرحمن الرحيم

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

شباب عندي طلب مود او كودات للمود

اريد مود الي هوه 6 فرق او تيمات كل تيم فماكن وكل تيم فية اربع او اكثر من شخص ويتم اختيار التيمات بطريقة الاسهم يعني مصور ف الشاشة سهم يمين ويسار وتقد تستخدم سهم الكيبورد وكل تيم له منطقة بس انا اغير احداثياتهم

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

يريت تساعدوني الي يعرف لا يبخل :?::?::?::?::?::?::?::?::arrow::idea::evil:8):lol::fadein::redhotevil::redhotevil::redhotevil::redhotevil::redhotevil::redhotevil:

Edited by Guest
Link to comment
createTeam -- عمل تيم 
setPlayerTeam -- أضافة اللاعب إلى التيم 
spawnPlayer -- سباون للاعب مع تحديد الأحداثيات المطلوبة 
setTeamFriendlyFire -- منع قتل الي معك بالتيم 

isObjectInACLGroup -- التحقق مما إذا كان اللاعب في قروب معين مثلاً قروب أدمن 

إذا ما عجبك الوضع

قول تم مسح الموضوع بسبب تابل معصب

أوك؟

Link to comment
الكود صح ولا غلط؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟
function gimmeATeam ( source, commandName, teamName ) 
  local newTeam = createTeam ( police ) -- create a new team with the specified name 
  if newTeam then -- if it was successfully created 
    setPlayerTeam ( source, newTeam ) -- add the player to the new team 
  end 
end 
addCommandHandler("giveteam", gimmeATeam) 
  
function assignNewTeam ( source, commandName, teamName ) 
  local theTeam = createTeam (police )  -- create a new team with the specified name 
  if theTeam then                          -- if it was successfully created 
    setPlayerTeam ( source, theTeam )    -- add the player to the new team 
  end 
end 
addCommandHandler ( "gimmeateam", assignNewTeam ) 
  
function unassignTeam ( source, commandName ) 
  local theTeam = getPlayerTeam ( source )  -- Check if the player is on a team 
  if theTeam then                          -- this player is on a team, so we can remove them from it 
    setPlayerTeam ( source, nil )    -- remove the player from the current team 
  end 
end 
addCommandHandler ( "takeawaymyteam", unassignTeam 
players = getElementsByType ( "player" ) 
-- Go through every player 
for playerKey, playerValue in ipairs(players) do 
    -- Spawn them at the desired coordinates 
    spawnPlayer ( playerValue, 0.0, 0.0, 5.0, 90.0, 0 ) 
end  
  
local allTeams = getElementsByType ( "police" ) 
-- for every team, 
for index, theTeam in ipairs(allTeams) do 
    -- if friendly fire is off, 
    if ( getTeamFriendlyFire ( theTeam ) == false ) then 
        -- switch it on 
        setTeamFriendlyFire ( theTeam, true ) 
    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...