Guest User

Untitled

a guest
May 15th, 2020
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. private object OnPlayerCommand(BasePlayer player, string command, string[] args)
  2. {
  3. if (command == "kit")
  4. {
  5. float kitCooldown;
  6. if (!args.Any() || !_cFile.Kits.TryGetValue(args[0].Replace("\"", ""), out kitCooldown))
  7. {
  8. return null;
  9. }
  10.  
  11. if (GetNextKitTime(kitCooldown) == TimeSpan.Zero)
  12. {
  13. return null;
  14. }
  15.  
  16. PrintToChat(player, Lang("CantUse", player.UserIDString, GetFormattedTime(GetNextKitTime(kitCooldown).TotalSeconds)));
  17. return true;
  18. }
  19.  
  20. return null;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment