Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

¨¨[FilterScript]Group System (2). [MySQL\Dynamic Rank and permission system]

Newbie Spellweaver
Joined
Feb 13, 2017
Messages
6
Reaction score
0
Group System (2) Beta

Note: The script is currently in beta stage and therefore buggy.

Introduction

My original plan was to create a group system which would support multiple(10) groups per player at a time but i cancelled my work on it as the requirement for my server was changed(however it is still uploaded below) and with that i came with some minor adjustments. I actually wanted to create a system in which a player could have as many ranks as he desires for his group and each with it's own special permissions and level. Although, i have come along a long way but there is still some polishing to be done and bugs to be fixed.

MySQL Table Structure

My Group system currently uses 3 tables.

Groups2 which contains all of the data relating to the group.
Code:
gID
gName
gLeaderName
gChat
gCredits //additional stuff
gResources
gWarWins
gWarLosses
gDraws
gScores

Players2, containing data of the players. Used for detecting player's group.
Code:
pID
pName
grouppid
prID
groupcontribution
gWarKills
pGroups
Lastly Ranks2. Containing permission and other group relating data.
Code:
rID
rgID
rName
rLevel
rPermission1,2,3,4,5

Commands

Following are the commands scripted into the Filterscript.
Code:
/groups - Lists available groups.
 /groupinfo(ID) - Get GroupInfo by either ID or Name.
 /creategroup - You must be a rcon admin to use this command. 
/groupinvite - For Group Leaders or those with special permission.
/g - Group Chat
/groupkick - For Leader and those with special permission.
 /groupranks - Display's group rank (bugged atm)
/GroupEditRank 
/GroupSetRank
/GroupChatLock

Thanks To
Code:
SAMP Team for everything.
Y_Less for y includes and sscanf.
Zex for zcmd

Bugs
There are many bugs which needs to be fixed.

Download Link




 
Back
Top