#Team / Gang System
1 messages · Page 1 of 1 (latest)
Just use tags
When a player joins a gang, give them a tag based off the name of a gang
The person at index 0 of Get All Players With Tag is the gang leader, as this is the oldest player in the gang
When creating a gang, check if the first player with the tag is valid. If they are valid, tell them the gang cant be created as a gang with that name already exists. Else create the gang by adding that tag to the player
yes, that is how lists work
rather, that is how Get All Players With Tag works
its tags, not roles
tags are dynamic
A player can have up to 5 tags, each tag can be up to 25 characters long
my bad i thought you mean't you can't take the name at all for every server
wdym "in the game"?
Use Has Tag
Oh so you want to check if they are in any gang, not just a specific gang
in that case yes, you can check if they have more than 0 tags
give them another tag like In Gang if you have multiple tags for the player
oh wait nvm
would this work?
yes
oh my bad i didn't read thought he said to get their gang name
fair