Skip to content

Instantly share code, notes, and snippets.

@MattJeanes
Last active August 29, 2015 13:56
Show Gist options
  • Save MattJeanes/9167458 to your computer and use it in GitHub Desktop.
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.
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