Posts: 193
Threads: 62
Joined: May 2012
Reputation:
0
Hello,
I have another question.
How to check the offline members from a faction and display them with a cmd ..
(i am using dudb for players and dini for Faction files)
Posts: 139
Threads: 6
Joined: Dec 2012
Reputation:
0
You have to load the values from the dini database to your in-game variables and then create a command to see those variables - meaning those stats.
If you are still in the phase of creating your gamemode i suggest you use Y_ini or maybe MySQL, since they are a bit more user-friendly. I'd like to emphasize though, that this is only my opinion.
Posts: 1,765
Threads: 1
Joined: Aug 2011
Reputation:
0
DONT EVER LOAD ALL THE PLAYER FILES!
If you really want that command add it to a file called for example: Faction Members. THen save a list of members in there.
Posts: 193
Threads: 62
Joined: May 2012
Reputation:
0
So for every faction i need to create new file? Like Faction-Members.ini ?
Can u show me code examples...
Posts: 193
Threads: 62
Joined: May 2012
Reputation:
0
Can someone help me with this if its possible? Please...
Posts: 526
Threads: 52
Joined: Feb 2013
Reputation:
0
Just create a faction members file and add a player's name into it uppon faction invitation.. and remove the name uppon a kick...
PS: Make sure you remove all the faction members from every faction unless you add them manually.
Because if you add their name there uppon invitation the members that are were in the faction before that update will not be in the list.
EDIT: Example for a faction-members file...
FactionName_Online_Members.ini
But you can call it however you want as long as you know which file it is.