1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 23:31:13 -05:00

-added trusted group ( will need a new database or manual update )

-reports capture screenshot
This commit is contained in:
RaidMax
2016-01-16 16:58:24 -06:00
parent c396428282
commit d797be07cf
9 changed files with 87 additions and 25 deletions

View File

@ -70,6 +70,15 @@ namespace StatsPlugin
if (E.Type == Event.GType.Connect)
{
resetCounters(E.Origin.clientID);
PlayerStats checkForTrusted = playerStats.getStats(E.Origin);
if (checkForTrusted.playTime >= 4320 && E.Origin.Level < Player.Permission.Trusted)
{
E.Origin.setLevel(Player.Permission.Trusted);
E.Owner.clientDB.updatePlayer(E.Origin);
E.Origin.Tell("Congratulations, you are now a ^5trusted ^7player! Type ^5!help ^7to view new commands.");
E.Origin.Tell("You earned this by playing for ^53 ^7full days!");
}
}
if (E.Type == Event.GType.MapEnd)