Young$ Posted January 23, 2012 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 damn man visit this link ---->>>> http://gifura.orzhk.org/src/1332235315120.swf <<<<---- For some epic maps1!!!!!
bandi94 Posted January 23, 2012 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 Ingame Name : |DGT|Puma DGT Clan Server 24/7 Owner/Scripter MultiGameMode in progress :
Young$ Posted January 23, 2012 Author Posted January 23, 2012 no i want to script it be meself any1 know's a script damn man visit this link ---->>>> http://gifura.orzhk.org/src/1332235315120.swf <<<<---- For some epic maps1!!!!!
drk Posted January 23, 2012 Posted January 23, 2012 Use createTeam EPT Team Server Development: 0% Learning C++ | C++ is amazing
Young$ Posted January 23, 2012 Author Posted January 23, 2012 omg that's no script damn man visit this link ---->>>> http://gifura.orzhk.org/src/1332235315120.swf <<<<---- For some epic maps1!!!!!
sora+ Posted January 23, 2012 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) I can map with any gamemode and do basic scripts
TAPL Posted January 24, 2012 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)
Blaawee Posted January 24, 2012 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 "
Young$ Posted January 24, 2012 Author Posted January 24, 2012 (edited) any1 know's a another script???? script don't work Edited January 24, 2012 by Guest damn man visit this link ---->>>> http://gifura.orzhk.org/src/1332235315120.swf <<<<---- For some epic maps1!!!!!
bandi94 Posted January 24, 2012 Posted January 24, 2012 https://wiki.multitheftauto.com/wiki/Scr ... troduction Ingame Name : |DGT|Puma DGT Clan Server 24/7 Owner/Scripter MultiGameMode in progress :
Young$ Posted January 24, 2012 Author Posted January 24, 2012 that's no scoreboard addteams script -.- damn man visit this link ---->>>> http://gifura.orzhk.org/src/1332235315120.swf <<<<---- For some epic maps1!!!!!
Orange Posted January 24, 2012 Posted January 24, 2012 that's no scoreboard addteams script -.- They gave you it. http://zduniak.net - don't contact me regarding mta:sa
Young$ Posted January 24, 2012 Author Posted January 24, 2012 es but that script don't show teams in scoreboard damn man visit this link ---->>>> http://gifura.orzhk.org/src/1332235315120.swf <<<<---- For some epic maps1!!!!!
drk Posted January 24, 2012 Posted January 24, 2012 LOL? Yonger you want to anyone create the full script to you? EPT Team Server Development: 0% Learning C++ | C++ is amazing
bandi94 Posted January 24, 2012 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 Ingame Name : |DGT|Puma DGT Clan Server 24/7 Owner/Scripter MultiGameMode in progress :
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