Posts: 165
Threads: 29
Joined: Dec 2012
Reputation:
0
Hello, is there anyway i can make a PlayerName to show in the game even if he's offline. I want to create a Best Killer sistem and i want to show him on /warstats even if he is offline, is there any way that i can make this happen
Posts: 864
Threads: 88
Joined: Jul 2012
Reputation:
0
Basically, add in a "total kills" variable in your player data and make sure it saves on disconnect, then loop through all the registered players in your save files or tables depending on what your filesystem is, and display the top 10 or however many you want. You can use dialogs or SCM's or TD's or however you wanna do it.
Posts: 851
Threads: 33
Joined: Jul 2016
Reputation:
0
Nothing is wrote in the .txt because maybe you didn't save in it? Do it at OnPlayerGiveDamage, increase the player's kill inside that "TopKills1.txt" and then Load it when the player does the command.