Jump to content

اريد كود


Recommended Posts

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

كيفكم ي شباب !! كلنا بصحة وعأفية ان شاء الله

دوووم ^

ابي منكم طلب :

أي ادمن يخش السييرفر يصير في تيم بالتاب .. يعني يكون تيم للأدمن مخصص !

وشكرآ لكم

Link to comment

  
-- Server Side ! 
AdminTeam = createTeam("Admin",255,0,0) 
  
addEventHandler("onResourceStart",resourceRoot,function ( ) 
   for _,v in ipairs ( getElementsByType("player") ) do 
       if not ( isGuestAccount ( getPlayerAccount ( v ) ) then 
            if ( isObjectInACLGroup("user." .. getAccountName( getPlayerAccount ( v ) ), aclGetGroup("Admin")) ) then 
                  setPlayerTeam(v,AdminTeam) 
            end 
       end 
   end 
end) 
  
addEventHandler("onPlayerLogin",root,function ( _,acc ) 
    if ( isObjectInACLGroup("user." .. getAccountName( acc ), aclGetGroup("Admin")) ) then 
        setPlayerTeam(source,AdminTeam) 
    end 
end) 
  
  
Edited by Guest
Link to comment

  
-- Server Side ! 
AdminTeam = createTeam("Admin",255,0,0) 
  
addEventHandler("onResourceStart",resourceRoot,function ( ) 
   for _,v in ipairs ( getElementsByType("player") ) do 
       if not ( isGuestAccount ( getPlayerAccount ( v ) ) then 
            if ( isObjectInACLGroup("user." .. getAccountName( getPlayerAccount ( v ) ), aclGetGroup("Admin")) ) then 
                  setPlayerTeam(v,AdminTeam) 
            end 
       end 
   end 
end) 
  
addEventHandler("onPlayerLogin",root,function ( _,acc ) 
    if ( isObjectInACLGroup("user." .. getAccountName( acc ), aclGetGroup("Admin")) ) then 
        setPlayerTeam(v,AdminTeam) 
    end 
end) 
  
  

'v'

مآهي لاعب ..

Link to comment
  
-- Server Side ! 
AdminTeam = createTeam("Admin",255,0,0) 
  
addEventHandler("onResourceStart",resourceRoot,function ( ) 
   for _,v in ipairs ( getElementsByType("player") ) do 
       if not ( isGuestAccount ( getPlayerAccount ( v ) ) then 
            if ( isObjectInACLGroup("user." .. getAccountName( getPlayerAccount ( v ) ), aclGetGroup("Admin")) ) then 
                  setPlayerTeam(v,AdminTeam) 
            end 
       end 
   end 
end) 
  
addEventHandler("onPlayerLogin",root,function ( _,acc ) 
    if ( isObjectInACLGroup("user." .. getAccountName( acc ), aclGetGroup("Admin")) ) then 
        setPlayerTeam(v,AdminTeam) 
    end 
end) 
  
  

'v'

مآهي لاعب ..

شكرا للملاحظة ,, !

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