mjau Posted July 16, 2011 Posted July 16, 2011 if i want to create almost a new team system but just to addtion to teams like it desent have to show up on scoreboard i want it only for restrivting vehicles and spawns couldsomone tell me the functions i need for that
JR10 Posted July 16, 2011 Posted July 16, 2011 I don't understand, you want to make a new teams system? Then make your own functions. here: MTA teams system functions: countPlayersInTeam createTeam getPlayersInTeam getPlayerTeam getTeamColor getTeamFriendlyFire getTeamFromName getTeamName setPlayerTeam setTeamColor setTeamFriendlyFire setTeamName Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
mjau Posted July 16, 2011 Author Posted July 16, 2011 no i mean a group system wich i can use to add people to groups and restrict spawn and cars to that group
Johnniey Posted July 16, 2011 Posted July 16, 2011 Maybe by using ACL and add some lines to it? In-game name|SW|]Johnniey Leader of |SW| Mixed Party Server
mjau Posted July 16, 2011 Author Posted July 16, 2011 yeah i tought about it and i will do that cuz i dont wanna make a BIG script for this small things as restriciting stuff
JR10 Posted July 16, 2011 Posted July 16, 2011 Add new groups to the ACL, and make a new acl, add it to the group. Make a new right, like "general.canSpawnCar", and in script check if object have permission to that right. Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
mjau Posted July 17, 2011 Author Posted July 17, 2011 nahh not that i meant i crated a spawn panel and i want to restrict 2 spawns one for admins and another one for Army Do i have to create a acl group for army ?
Jaysds1 Posted July 17, 2011 Posted July 17, 2011 Even if u use Acl, you need to make a script to restrict the Skin/Spawns... My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
Castillo Posted July 18, 2011 Posted July 18, 2011 I would suggest scripting a system with databases or something, it's easier than editing the acl. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
mjau Posted July 20, 2011 Author Posted July 20, 2011 ok another idea is it pissible to create a table with accountnames NOT nick and restrict the spawns then ? and how what functions ?
Jaysds1 Posted July 21, 2011 Posted July 21, 2011 oK, First of all, you have to get the person name/nick and see if there in the acl group (example: Army) using is object in acl... and output or open a gui saying that the person is not in the Army... not that simple but easy. My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
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