We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c8ed3c commit a1cb6a0Copy full SHA for a1cb6a0
pawn/Features/Deathmatch/Hitman/HitmanCommands.pwn
@@ -52,11 +52,16 @@ class HitmanCommands {
52
@command("hitman")
53
public onHitmanCommand(playerId, params[]) {
54
new bountyAmount = Command->integerParameter(params, 1);
55
- if (Command->parameterCount(params) != 2 || bountyAmount < 1) {
+ if (Command->parameterCount(params) != 2) {
56
SendClientMessage(playerId, Color::Information, "Usage: /hitman [player] [amount]");
57
return 1;
58
}
59
60
+ if (bountyAmount <= 0) {
61
+ SendClientMessage(playerId, Color::Error, "Bounty can't be zero or a negative integer");
62
+ return 1;
63
+ }
64
+
65
new victimId = Command->playerParameter(params, 0, playerId);
66
if (victimId == Player::InvalidId)
67
0 commit comments