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 بدا^