Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private object OnPlayerCommand(BasePlayer player, string command, string[] args)
- {
- if (command == "kit")
- {
- float kitCooldown;
- if (!args.Any() || !_cFile.Kits.TryGetValue(args[0].Replace("\"", ""), out kitCooldown))
- {
- return null;
- }
- if (GetNextKitTime(kitCooldown) == TimeSpan.Zero)
- {
- return null;
- }
- PrintToChat(player, Lang("CantUse", player.UserIDString, GetFormattedTime(GetNextKitTime(kitCooldown).TotalSeconds)));
- return true;
- }
- return null;
- }
Advertisement
Add Comment
Please, Sign In to add comment