Posts: 2,629
Threads: 40
Joined: Mar 2008
Reputation:
0
You cant really set every players level to 0 without them being online unless you had a list of all registered players in a file then you could edit all the different files. I would probably just set the players level to 0 when they connect, and have a variable set if they have had their level reset already. If the variable isn't set, then just make it so the players level is set to 0.
Posts: 381
Threads: 19
Joined: Oct 2011
Reputation:
0
I can't do that.
But yeah, all userfiles are saved as %s.cfg in one file ( scriptfiles ofc )
How would i do it mate?
I can't edit 6,500 accounts without cutting my **** off lol
Posts: 2,629
Threads: 40
Joined: Mar 2008
Reputation:
0
Just make a PHP / C# script / plugin that loops through the files and sets all the levels to 0. You cant really do this in PAWN though.
Posts: 381
Threads: 19
Joined: Oct 2011
Reputation:
0
all i want is to create a strcmp cmd that does this cleanup of all users to lvl 0 when i use it..
Posts: 2,629
Threads: 40
Joined: Mar 2008
Reputation:
0
If you want to be able to do that, either create a plugin or switch your file system to MySQL / SQLite.
Posts: 381
Threads: 19
Joined: Oct 2011
Reputation:
0
can you give me some examples of what i should put in the plugin itself?
Posts: 2,938
Threads: 162
Joined: May 2010
heres a nice idea, I used this 2 years ago.
Get a list of your admins, and use a strcmp check in OnPlayerConnect.
if there an admin, continue, else set there level to 0.
This will save you the pain of this, but bring more code to your script.