How to add a new item to my LuxAdmin stats ? -
Rohit12 - 26.08.2017
Hey i guys, im using luxadmin FS and i want to know how i can add a new item for eg. Total moneybags found.
I edited my MB script so now I can see the number of mbs i found but only till i quit the game. Every time i restart the server it starts counting from 1...2...3.. like that. It is not being saved. I want you people to help me to figure out where i should edit the script in lux admin and what all i should do to Save it or any other i add in future. Also it should be there in /stats.
Thank you
Re: How to add a new item to my LuxAdmin stats ? -
STRIKER19501 - 26.08.2017
unload ur fs while in game with /rcon unloadfs <name of fs> then restart the server.
Re: How to add a new item to my LuxAdmin stats ? -
Rohit12 - 26.08.2017
Oh that isnt the easy way, we are human and there is always a possibility we can forget to unload it and restart which leads to LOSS of player's specific records etc...
I just want to add it like kills and deaths which are usually saved even when the server restarts
Re: How to add a new item to my LuxAdmin stats ? -
thegamer355 - 27.08.2017
That's the reason why i have everything in the gamemode, yes the file becomes big, but at a restart, you are 100% sure stuff gets saved.
In your script, i assume assets get saved at OnPlayerDisconnect, at the field there so it gets saved, at OnPlayerConnect, or where you load it again, load it aswell.
Re: How to add a new item to my LuxAdmin stats ? -
Rohit12 - 27.08.2017
So this is the variable i used for saving MBs
new pMoneyBagsFound[MAX_PLAYERS];
What should i do with these in my gamemode or where ?
Re: How to add a new item to my LuxAdmin stats ? -
LazzyBoy - 27.08.2017
Go to code where you check if player picked the bag and add this
Код:
pMoneyBagsFound[playerid]++;
Re: How to add a new item to my LuxAdmin stats ? -
aoky - 27.08.2017
Quote:
Originally Posted by STRIKER19501
unload ur fs while in game with /rcon unloadfs <name of fs> then restart the server.
|
He can just do /rcon reloadfs <Filterscript>. Just a heads up
Re: How to add a new item to my LuxAdmin stats ? -
Rohit12 - 28.08.2017
Is it that hard to make my script save the total moneybags found? Also make it shown in /stats CMD of luxadmin FS. Also It is not possible to always reload or unload the FS 😟. I'm asking because I've it in other servers a lot.
Re: How to add a new item to my LuxAdmin stats ? -
Rohit12 - 28.08.2017
HELP GUYS :/