Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case "raport" when ev.Command.Length > cmd.Length + 1:
- {
- DateTime time = DateTime.Now;
- if (RateLimiter.ContainsKey(ev.Player.SteamId))
- {
- DateTime value = RateLimiter[ev.Player.SteamId];
- if (time.Subtract(value).TotalSeconds < 60)
- {
- int WaitTime = 60 - int.Parse(time.Subtract(value).TotalSeconds.ToString());
- ev.ReturnMessage = "Musisz poczekać jeszcze " + WaitTime + "sekund";
- break;
- }
- else
- {
- RateLimiter.Remove(ev.Player.SteamId);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement