Young$ Posted January 23, 2012 Share Posted January 23, 2012 the scoreboard is wrong script i think? this is script _________________________________________________________________ --call(getResourceFromName("scoreboard"), "addScoreboardColumn") exports["scoreboard"]:scoreboardAddColumn("ACL") function setACL(player) local admin = "Admin" local supermoderator = "SuperModerator" local moderator = "Moderator" local everyone = "Visitor" local console = "HeadAdmin" if isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "Admin" ) ) then setElementData ( player, "ACL", admin ) elseif isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "SuperModerator" ) ) then setElementData ( player, "ACL", supermoderator ) elseif isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "Moderator" ) ) then setElementData ( player, "ACL", moderator ) elseif isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "Console" ) ) then setElementData ( player, "ACL", console ) elseif isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "Everyone" ) ) then setElementData ( player, "ACL", everyone ) end end function timer() setTimer( setACL, 1000, 1, source ) end addEventHandler("onPlayerLogin", getRootElement(), timer) addEventHandler("onPlayerJoin", getRootElement(), timer) ___________________________________________________________________ and this is scoreboard ___________________________________________________________________ ___________________________________________________________________ and this is what i want ___________________________________________________________________ ___________________________________________________________________ i hope you can give a good script Link to comment
bandi94 Posted January 23, 2012 Share Posted January 23, 2012 if you are talking about team's you can use my autoteam but my autoteam work's whit ACL group and name Tag and then player's must have a tag in the name or edit the script to work whitout tag (using tag ex> |A|Player name |M|Playername .....) https://community.multitheftauto.com/index.php?p= ... ls&id=2833 Link to comment
Young$ Posted January 23, 2012 Author Share Posted January 23, 2012 no i want to script it be meself any1 know's a script Link to comment
Young$ Posted January 23, 2012 Author Share Posted January 23, 2012 omg that's no script Link to comment
sora+ Posted January 23, 2012 Share Posted January 23, 2012 function createthedamnteams() team1 = createTeam("Members",0,255,0) team2 = createTeam("Moderators",255,255,0) team3 = createTeam("Admins",0,0,255) team4 = createTeam("VIP",139,0,139) end addEventHandler ( "onResourceStart", getRootElement(), createthedamnteams ) That will create your teams (serversided) Link to comment
TAPL Posted January 24, 2012 Share Posted January 24, 2012 function createthedamnteams() team1 = createTeam("Members",0,255,0) team2 = createTeam("Moderators",255,255,0) team3 = createTeam("Admins",0,0,255) team4 = createTeam("VIP",139,0,139) end addEventHandler("onResourceStart", resourceRoot, createthedamnteams) Link to comment
Blaawee Posted January 24, 2012 Share Posted January 24, 2012 - teams.lua function createthedamnteams() member = createTeam("Members",0,255,0) moder = createTeam("Moderators",255,255,0) smoder = createTeam("SuperModerator",255,255,0) admin = createTeam("Admins",255,0,0) vip = createTeam("VIP",255,255,0) end addEventHandler("onResourceStart", resourceRoot, createthedamnteams) function addthem (player) if isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "Admin" ) ) then setPlayerTeam ( player, admin ) elseif isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "SuperModerator" ) ) then setPlayerTeam ( player, smoder ) elseif isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "Moderator" ) ) then setPlayerTeam ( player, moder ) elseif isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "Vip" ) ) then setPlayerTeam ( player, vip ) elseif isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "Everyone" ) ) then setPlayerTeam ( player, member ) end end function addtoteamtimer() setTimer(addthem,1000,1,source) end addEventHandler ( "onPlayerLogin", root, addtoteamtimer ) addEventHandler ( "onPlayerJoin", root, addtoteamtimer ) - meta.xml "youngs" type="misc" name="Teams" /> for the vip team you need to create a ACL group called " Vip " Link to comment
Young$ Posted January 24, 2012 Author Share Posted January 24, 2012 (edited) any1 know's a another script???? script don't work Edited January 24, 2012 by Guest Link to comment
bandi94 Posted January 24, 2012 Share Posted January 24, 2012 https://wiki.multitheftauto.com/wiki/Scr ... troduction Link to comment
Young$ Posted January 24, 2012 Author Share Posted January 24, 2012 that's no scoreboard addteams script -.- Link to comment
Orange Posted January 24, 2012 Share Posted January 24, 2012 that's no scoreboard addteams script -.- They gave you it. Link to comment
Young$ Posted January 24, 2012 Author Share Posted January 24, 2012 es but that script don't show teams in scoreboard Link to comment
drk Posted January 24, 2012 Share Posted January 24, 2012 LOL? Yonger you want to anyone create the full script to you? Link to comment
bandi94 Posted January 24, 2012 Share Posted January 24, 2012 - teams.lua function createthedamnteams() member = createTeam("Members",0,255,0) moder = createTeam("Moderators",255,255,0) smoder = createTeam("SuperModerator",255,255,0) admin = createTeam("Admins",255,0,0) vip = createTeam("VIP",255,255,0) end addEventHandler("onResourceStart", resourceRoot, createthedamnteams) function addthem (player) if isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "Admin" ) ) then setPlayerTeam ( player, admin ) elseif isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "SuperModerator" ) ) then setPlayerTeam ( player, smoder ) elseif isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "Moderator" ) ) then setPlayerTeam ( player, moder ) elseif isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "Vip" ) ) then setPlayerTeam ( player, vip ) elseif isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "Everyone" ) ) then setPlayerTeam ( player, member ) end end function addtoteamtimer() setTimer(addthem,1000,1,source) end addEventHandler ( "onPlayerLogin", root, addtoteamtimer ) addEventHandler ( "onPlayerJoin", root, addtoteamtimer ) - meta.xml "youngs" type="misc" name="Teams" /> for the vip team you need to create a ACL group called " Vip " I don't thest this but i think this is working you put in server side? if you are using race is a litel bug i noticed on my server somethimes you are showd in the team(scoreboard) after the next map started 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