Teams/Factions
#1

Hello, I am making a RP Server, I wish to make factions and came across one thread which stated

Quote:

4. If your server does not have a saving system don't even bother with this step. I'm not explaining, how to create on, but how to use one. Now if you want players to change teams constantly such as a protect the president or a team DM server then this step is not important. This Step is geared more toward RP servers. What ever save system you have, under register make a new saving component, and make it team, or faction or w/e. On the login command were you can see the stats loading up, add the team one you made above, and make it like this.

pawn Code:
gTeam[playerid] = /* Your Save file for team */

Under OnPlayerDisconnect, you can make the save updating command. I use a dini saving system so here is an example.

Under OnPlayerDissconnect...
pawn Code:
dini_IntSet(file, team, gTeam[playerid]);
That function will take the players gTeam variable and save it on the players file. Then load it back up when they log in.

I am using LuxAdmin, it registers players and creates a file for them, how can I implement Luxadmin saving system into this. Luxadmin saves user files in scriptfiles/LuxAdmin/Accounts/PLAYERNAME.sav
Reply
#2

Any ideas?
Reply
#3

Does Luxadmin just save the admin stats? I would reccomend using YSI and writing it yourself, its not very hard
Reply
#4

Quote:
Originally Posted by Mattakil
Посмотреть сообщение
Does Luxadmin just save the admin stats? I would reccomend using YSI and writing it yourself, its not very hard
Luxadmin saves details for all players, not just admins. I want to stick with LuxAdmin as I really prefer LuxAdmin.
Reply
#5

BUMP!!! I need this FAST!
Reply
#6

As stated above, you are honestly better writing it yourself than using a filterscript to do it for you. Also, use Y_INI - it is 45x faster than DINI.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)