How to add a new item to my LuxAdmin stats ?
#1

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

unload ur fs while in game with /rcon unloadfs <name of fs> then restart the server.
Reply
#3

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

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

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 ?
Reply
#6

Go to code where you check if player picked the bag and add this

Код:
pMoneyBagsFound[playerid]++;
Reply
#7

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
Reply
#8

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

HELP GUYS :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)