Jump to content

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


Recommended Posts

اظن تحتاج ,

onPlayerJoin

createTeam 
string.find 
getPlayerName 
setPlayerTeam 

هل كذا صح او لا

team = createTeam("Team1",255,55,55) 
addEventHandler("onPlayerJoin",root,function () 
  if getPlayerName(source) == "~mR//" then 
  setPlayerTeam(source,team) 
  end 
end 
) 

كثير sting.find جرب كذا ماعرف للـ

team = createTeam("Team1",255,55,55) 
addEventHandler("onPlayerJoin",root,function () 
  if string.find(getPlayerName(source),"~mR//") then 
  setPlayerTeam(source,team) 
  end 
end 
) 

Link to comment
اظن تحتاج ,

onPlayerJoin

createTeam 
string.find 
getPlayerName 
setPlayerTeam 

هل كذا صح او لا

team = createTeam("Team1",255,55,55) 
addEventHandler("onPlayerJoin",root,function () 
  if getPlayerName(source) == "~mR//" then 
  setPlayerTeam(source,team) 
  end 
end 
) 

كثير sting.find جرب كذا ماعرف للـ

team = createTeam("Team1",255,55,55) 
addEventHandler("onPlayerJoin",root,function () 
  if string.find(getPlayerName(source),"~mR//") then 
  setPlayerTeam(source,team) 
  end 
end 
) 

راح اجرب ارد خبر

Link to comment
مانقلني التيم

اشتغل ولكن عندي سؤال

هو ينقلني لتيم لما يكون قبل نكي ~mR//

و ادخل السيرفر

كيف اخليه لمن اغير نكي و انا جوا السيرفر ~mR//

ينقلني لتيم

و اذا شلته يطلعني من التيم

Edited by Guest
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...