Jump to content

group system


mjau

Recommended Posts

Posted

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

Posted

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 

Posted

no i mean a group system wich i can use to add people to groups and restrict spawn and cars to that group

Posted

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

Posted

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.

Posted

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 ?

Posted

ok another idea xD is it pissible to create a table with accountnames NOT nick and restrict the spawns then ? and how what functions ?

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...