Jw8. Posted November 21, 2016 Share Posted November 21, 2016 ابي كود تيم فقط يخشه عن طريقه تعمل قروب ادمن اذا تقدرو لو سمحتو Link to comment
iMr ~ MnHmAr Posted November 21, 2016 Share Posted November 21, 2016 مافهمتكك انت تبي تعمل تيم مايخشون فيه الا رتبتة الادمن ؟ 1 Link to comment
Jw8. Posted November 21, 2016 Author Share Posted November 21, 2016 يب لوسمحت تقدر؟ #Edit: #BrosS iMr ~ MnHmArتقدرو تسعدوني ولا لا ؟ || لاهنت Link to comment
#BrosS Posted November 21, 2016 Share Posted November 21, 2016 (edited) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) function xteam ( source, commandName, teamName ) local myteam = createTeam ( Staff ) -- مثلا سويت تيم ستاف if myteam then -- تحقق للتيم if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then -- تحقق لجروب ادمن setPlayerTeam ( source, myteam ) -- تحويلك للتيم end end end addCommandHandler ( "st", xteam ) اذا كنت ادمن تدخله st مثال لما تكتب Edit خطٱ ^ TeamName احذف myteam = createTeam ( "Staff", 0, 255, 0 ) غير السطر 3 بدا^ Edited November 21, 2016 by #BrosS Link to comment
Jw8. Posted November 21, 2016 Author Share Posted November 21, 2016 ابغى تتحول لشخصيه لو سمحت Link to comment
Jw8. Posted November 21, 2016 Author Share Posted November 21, 2016 local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) function xteam ( source, commandName ) setElementModel (skin ,160) local myteam = createTeam ( Staff ) -- مثلا سويت تيم ستاف if myteam then -- تحقق للتيم if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then -- تحقق لجروب ادمن setPlayerTeam ( source, myteam ) -- تحويلك للتيم end end end addCommandHandler ( "st", xteam ) Link to comment
MR.GRAND Posted November 21, 2016 Share Posted November 21, 2016 9 minutes ago, #BrosS said: local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) function xteam ( source, commandName, teamName )local myteam = createTeam ( Staff ) -- مثلا سويت تيم ستافif myteam then -- تحقق للتيمif isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then -- تحقق لجروب ادمنsetPlayerTeam ( source, myteam ) -- تحويلك للتيم end end end addCommandHandler ( "st", xteam ) اذا كنت ادمن تدخله st مثال لما تكتب هو قصده لو اي لاعب خارج قروب الأدمن وصار بـ تيم معين مثلا يطلعه من التيم لو هو مو ادمن هذا طلبك تفضل ^ setTimer( function( ) local AdminsTeam = getTeamFromName('Admins') if ( AdminsTeam == nil or not AdminsTeam ) then return end local Players = getPlayersInTeam( AdminsTeam ) for _, player in ipairs( Players ) do local account = getPlayerAccount( player ) if ( isGuestAccount( account ) ) then setPlayerTeam( player, nil ) outputChatBox( '* Error : #FFFFFF Sorry, you are not admin we took you out from "Admins" team ', source, 255, 0, 0, true ) else if ( not isObjectInACLGroup( 'user.' .. getAccountName( account ), aclGetGroup( 'Admin' ) ) ) then setPlayerTeam( player, nil ) outputChatBox( '* Error : #FFFFFF Sorry, you are not admin we took you out from "Admins" team ', source, 255, 0, 0, true ) else return end end end end, 50, 0 ) 1 Link to comment
#BrosS Posted November 21, 2016 Share Posted November 21, 2016 (edited) Deleted Edited November 21, 2016 by #BrosS 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