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

n-560x95_E60303_FFFFFF_030303_FF0303.png
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 

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

Posted

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

n-560x95_E60303_FFFFFF_030303_FF0303.png
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

n-560x95_E60303_FFFFFF_030303_FF0303.png
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 ?

n-560x95_E60303_FFFFFF_030303_FF0303.png
Posted

I would suggest scripting a system with databases or something, it's easier than editing the acl.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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 ?

n-560x95_E60303_FFFFFF_030303_FF0303.png
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.

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/

 

sE5Qm.png

TiV3C.png

img.php?id=0&text=Lua%20Scripter

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...