Checking offline members
#1

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)
Reply
#2

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.
Reply
#3

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.
Reply
#4

So for every faction i need to create new file? Like Faction-Members.ini ?
Can u show me code examples...
Reply
#5

Can someone help me with this if its possible? Please...
Reply
#6

BUMB! one day passed..
Reply
#7

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


Forum Jump:


Users browsing this thread: 1 Guest(s)