Last active
August 29, 2015 13:56
-
-
Save MattJeanes/9167458 to your computer and use it in GitHub Desktop.
Finds the player with the most playtime of a certain rank, one line for console command usage.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local rank="trustedrespected" local p="" local n=0 for k,v in pairs(evolve.PlayerInfo) do if v.Rank==rank and v.PlayTime>n then p=v.Nick n=v.PlayTime end end evolve:Notify(evolve.colors.white, "The "..evolve.ranks[rank].Title.." with the highest playtime is ", evolve.colors.blue, p, evolve.colors.white, " with ", evolve.colors.red, math.floor(n/60/60/24).." days", evolve.colors.white, ".") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment