15.06.2013, 16:31
(
Последний раз редактировалось FShiwani; 16.06.2013 в 16:24.
)
Hello, I am making a RP Server, I wish to make factions and came across one thread which stated
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
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. |