Jump to content

setPlayerTeam


Recommended Posts

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

setPlayerTeam 

حاولت اسوي ذا الكود عبر ترايقر بين الكلنت والسيرفر

وماظبط

  
--- server side 
function createTeamsOnStart () 
    team = createTeam ( "team1", 0, 255, 0 )  
end 
addEventHandler("onResourceStart", resourceRoot, createTeamsOnStart)  
  
addEvent("setTeam",true)  
addEventHandler("setTeam",root,  
function(player) 
 if team then 
setPlayerTeam ( player,team ) 
end  
end) 

Link to comment
  
  
--- server side 
function createTeamsOnStart () 
    team = createTeam ( "team1", 0, 255, 0 )  
end 
addEventHandler("onResourceStart", resourceRoot, createTeamsOnStart)  
  
addEvent("setTeam",true)  
addEventHandler("setTeam",root,  
function() 
setPlayerTeam ( source,team ) 
end) 

يسسسسلموو والله ي طلال دايم انت الاول فـ الافادهـ يعطيكـ ربي الف عافيهه

=] ماقصرت واللهه

Link to comment
  
  
--- server side 
function createTeamsOnStart () 
    team = createTeam ( "team1", 0, 255, 0 )  
end 
addEventHandler("onResourceStart", resourceRoot, createTeamsOnStart)  
  
addEvent("setTeam",true)  
addEventHandler("setTeam",root,  
function() 
setPlayerTeam ( source,team ) 
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...