Garry's Mod

Garry's Mod

Not enough ratings
gObjectTags
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Build, Roleplay
File Size
Posted
8.183 KB
1 Nov, 2018 @ 1:51pm
1 Change Note ( view )

Subscribe to download
gObjectTags

Description
Please join my Server if your looking for a customized roleplay experience! 198.98.56.23:27016

Foreword
Source code can be found on github,
https://github.com/TibbaRrule/gobjecttags
Support me by subscribing to my youtube channel, https://www.youtube.com/channel/UCVYG2ZDHynAXgYLP6J9hxUg
For any problems please open a discussion.

Credits go to Acecool for his Network Library, allowing for quick replication.

A user-driven solution for tagging players with data.

Similar to a flagging system but limited to strings, entities are given tags. This tag saves to a local SQL database, MySQL webserver or text files in the data folder. When the player joins it loads from these places, and it
has the functionality to look through multiple sets of data if you decide to switch from one to another.

Feature List:
  • !addtag <user> <flag> and !removetag <user> <flag> to add&remove string tags from people
  • Saving to SQL, Text & MySQL (Using MySQLOO[github.com])
Use Case:
  • Set someone as VIP without setting them as donator
  • Set someone as donator without needing to make a administration usergroup for them.
  • Please seperate VIP and Donator away from admin permissions.
Suggestions:
  • Let everyone work toward VIP
  • Give donator as a bragging rights stick for the server
Implementation:
  • You would use these tags as a basis for implementing UI such as scoreboard colors if they have a tag
  • You may want to restrict the player based on a faction they chose, allowing you to split the game mode up easily
  • You can use this system for entities, you would just have to sort out where to retrieve the data from.
Known Implementation:
  • Server Crossover Communication, add a tag; save and send the player to the second server. This allows the second server to know that the player traveled from the previous server
    allowing you to do something like "Enter the Tunnel" > Switch Server > "Exit Tunnel". My gamemode allowed you to travel between servers using this tag system as messengers.
  • If you need someone to be a VIP without having the donator admin rank you can add a tag and implement into your gamemode/server that whatever you would like to be restricted to VIP's requires
    the tag. Vice versa with whatever tag you want.
Popular Discussions View All (1)
0
1 Nov, 2018 @ 2:31pm
Bugs
allbrancereal :3