Jinx099 Posted February 14, 2016 Share Posted February 14, 2016 (edited) SLOVED Edited August 12, 2016 by Guest Link to comment
tosfera Posted February 15, 2016 Share Posted February 15, 2016 Well if you want to fix this, why don't you do it? It seems to me like you just came here to tell us you want to fix something and that there is a "problem". Well.. sorry to say but that sucks. Good luck with fixing the error buddy! We know you can do it, I guess. Link to comment
MTA Team 0xCiBeR Posted February 15, 2016 MTA Team Share Posted February 15, 2016 call ( getResourceFromName ( "scoreboard" ), "scoreboardAddColumn", "Job" ) call ( getResourceFromName ( "scoreboard" ), "scoreboardAddColumn", "Job Rank" ) function createTeamsOnStart () teamMOds = createTeam ( "Staff", 85,26,139 ) end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), createTeamsOnStart ) function assignSmodTeam ( player, commandName ) local accName1 = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName1, aclGetGroup ( "SuperModerator" ) ) then setPlayerTeam ( player, teamMOds ) setElementData ( player, "Job", "Staff" ) setElementData ( player, "Job Rank", "Super Mod" ) setPedArmor ( player, 100 ) setElementModel ( player, 217 ) setPlayerNametagColor ( player, 85,26,139 ) exports.GTWtopbar:dm( "Welcome to staff team as Super Moderator", player, 0,255,0 ) elseif isObjectInACLGroup ("user."..accName1, aclGetGroup ( "TrialModerator" ) ) then setPlayerTeam ( player, teamMOds ) setElementData ( player, "Job", "Staff" ) setElementData ( player, "Job Rank", "Trial Mod" ) setPedArmor ( player, 100 ) setElementModel ( player, 217 ) setPlayerNametagColor ( player, 85,26,139 ) exports.GTWtopbar:dm( "Welcome to staff team as Trial Moderator", player, 0,255,0 ) elseif isObjectInACLGroup ("user."..accName1, aclGetGroup ( "JuniorModerator" ) ) then setPlayerTeam ( player, teamMOds ) setElementData ( player, "Job", "Staff" ) setElementData ( player, "Job Rank", "Junior Mod" ) setPedArmor ( player, 100 ) setElementModel ( player, 217 ) setPlayerNametagColor ( player, 85,26,139 ) exports.GTWtopbar:dm( "Welcome to staff team as Junior Moderator", player, 0,255,0 ) elseif isObjectInACLGroup ("user."..accName1, aclGetGroup ( "SeniorModerator" ) ) then setPlayerTeam ( player, teamMOds ) setElementData ( player, "Job", "Staff" ) setElementData ( player, "Job Rank", "Senior Mod" ) setPedArmor ( player, 100 ) setElementModel ( player, 217 ) setPlayerNametagColor ( player, 85,26,139 ) exports.GTWtopbar:dm( "Welcome to staff team as Senior Moderator", player, 0,255,0 ) elseif isObjectInACLGroup ("user."..accName1, aclGetGroup ( "StaffManagement" ) ) then setPlayerTeam ( player, teamMOds ) setElementData ( player, "Job", "Staff" ) setElementData ( player, "Job Rank", "Staff Manager" ) setPedArmor ( player, 100 ) setPlayerNametagColor ( player, 85,26,139 ) exports.GTWtopbar:dm( "Welcome to staff team as Staff manager", player, 0,255,0 ) elseif isObjectInACLGroup ("user."..accName1, aclGetGroup ( "Moderator" ) ) then setPlayerTeam ( player, teamMOds ) setElementData ( player, "Job", "Staff" ) setElementData ( player, "Job Rank", "Moderator" ) setPedArmor ( player, 100 ) setElementModel ( player, 217 ) setPlayerNametagColor ( player, 85,26,139 ) exports.GTWtopbar:dm( "Welcome to staff team as Moderator", player, 0,255,0 ) elseif isObjectInACLGroup ("user."..accName1, aclGetGroup ( "Administrator" ) ) then setPlayerTeam ( player, teamMOds ) setElementData ( player, "Job", "Staff" ) setElementData ( player, "Job Rank", "Administrator" ) setPedArmor ( player, 100 ) setPlayerNametagColor ( player, 85,26,139 ) exports.GTWtopbar:dm( "Welcome to staff team as Administrator", player, 0,255,0 ) elseif isObjectInACLGroup ("user."..accName1, aclGetGroup ( "Owner" ) ) then setPlayerTeam ( player, teamMOds ) setElementData ( player, "Job", "Staff" ) setElementData ( player, "Job Rank", "Owner" ) setPedArmor ( player, 100 ) setPlayerNametagColor ( player, 85,26,139 ) exports.GTWtopbar:dm( "Welcome to staff team as Owner", player, 0,255,0 ) elseif isObjectInACLGroup ("user."..accName1, aclGetGroup ( "Admin" ) ) then setPlayerTeam ( player, teamMOds ) setElementData ( player, "Job", "Staff" ) setElementData ( player, "Job Rank", "Admin" ) setPedArmor ( player, 100 ) setElementModel ( player, 217 ) setPlayerNametagColor ( player, 85,26,139 ) exports.GTWtopbar:dm( "Welcome to staff team as ADMIN", player, 0,255,0 ) else end end addCommandHandler ( "staff", assignSmodTeam ) Link to comment
Jinx099 Posted February 16, 2016 Author Share Posted February 16, 2016 ty @ciber it works <3 Link to comment
Bonsai Posted February 16, 2016 Share Posted February 16, 2016 Do not delete posts after they were solved. There should be something like.. auto quote first posts :c 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