SA-MP Forums Archive
Checking offline members - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Checking offline members (/showthread.php?tid=421973)



Checking offline members - MadafakaPro - 11.03.2013

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)


Re: Checking offline members - batonsa - 11.03.2013

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.


Re: Checking offline members - IceCube! - 11.03.2013

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.


Re: Checking offline members - MadafakaPro - 11.03.2013

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


Re: Checking offline members - MadafakaPro - 11.03.2013

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


Re: Checking offline members - MadafakaPro - 12.03.2013

BUMB! one day passed..


Re: Checking offline members - Denying - 12.03.2013

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.