Skip to content

Commit

Permalink
improvements, upper limit of 100
Browse files Browse the repository at this point in the history
  • Loading branch information
farooqkz committed Jun 14, 2024
1 parent aa281ff commit 9ed417e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mods/ctf/ctf_modebase/bounties.lua
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ ctf_core.register_chatcommand_alias("bounty", "b", {
amount = math.floor(amount)
local bteam = ctf_teams.get(bname)
if not bteam then
return false, "This player is either not online or isn't in a team"
return false, "This player isn't online or isn't in a team"
end
if bteam == ctf_teams.get(name) then
return false, "You cannot place a bounty on your teammate!"
Expand All @@ -298,6 +298,9 @@ ctf_core.register_chatcommand_alias("bounty", "b", {
if amount < 5 then
return false, "Your bounty needs to be of at least 5 points"
end
if amount > 100 then
return false, "Your bounty cannot be of more than 100 points"
end

if not current_mode or not ctf_modebase.match_started then
return false, "Match has not started yet."
Expand Down

0 comments on commit 9ed417e

Please sign in to comment.