Jump to content

كود تاج خاص اول مايدخل اللاعب


Recommended Posts

السلام عليكم

استفسار عن كود

في بعض السيرفرات الي يدخل وعنده تحميل يطلع قبل اسمه Download

وبعدين لما يخلص تحميله يطلع قبل اسمه الي انا اختاره من التاج

هدا كود ولا من نفس التاج ؟

Link to comment
وين تجربتكـ <@>
function assignNewTeam ( source, commandName, teamName ) 
  local theTeam = createTeam ( D )  -- 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 ) 
  

Link to comment
وين تجربتكـ <@>
function assignNewTeam ( source, commandName, teamName ) 
  local theTeam = createTeam ( D )  -- 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 ) 
  

كوبي = بست -_-

Link to comment
وين تجربتكـ <@>
function assignNewTeam ( source, commandName, teamName ) 
  local theTeam = createTeam ( D )  -- 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 ) 
  

كوبي = بست -_-

هدا من الويكي

Link to comment

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

يعني اعمل اي مود كلنت يكون مثل الفري روم يطول لين يخلص تحميله يكون اخر شي و ضيف له سيرفر

سيرفر بيكون فيه اذا دخل لاعب يخذ تاج

و اذا شتغل الاكلنت يلغي الوضيفه

كذا بيكون اسهل لك

بتستخدم ذولي

onPlayerJoin

onClientResourceStart

triggerServerEvent

cancelEvent

مع التاج

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