Dr.Xen Posted March 2, 2014 Share Posted March 2, 2014 السلام عليكم ورحمة الله وبركاته .. كيفكم ي شباب !! كلنا بصحة وعأفية ان شاء الله دوووم ^ ابي منكم طلب : أي ادمن يخش السييرفر يصير في تيم بالتاب .. يعني يكون تيم للأدمن مخصص ! وشكرآ لكم Link to comment
AboShanab Posted March 4, 2014 Share Posted March 4, 2014 (edited) -- 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 March 4, 2014 by Guest Link to comment
iPrestege Posted March 4, 2014 Share Posted March 4, 2014 -- 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
AboShanab Posted March 4, 2014 Share Posted March 4, 2014 -- 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now