From 5b2d36e386bc87de2cd44513b91426d505c10068 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 27 Feb 2008 13:46:41 +0000 Subject: [PATCH] fixed amb1487 (sm_slap for negative damage) --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401905 --- plugins/playercommands/slap.sp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/playercommands/slap.sp b/plugins/playercommands/slap.sp index efa793cbb..891bb463e 100644 --- a/plugins/playercommands/slap.sp +++ b/plugins/playercommands/slap.sp @@ -175,7 +175,7 @@ public Action:Command_Slap(client, args) { decl String:arg2[20]; GetCmdArg(2, arg2, sizeof(arg2)); - if (StringToIntEx(arg2, damage) == 0) + if (StringToIntEx(arg2, damage) == 0 || damage < 0) { ReplyToCommand(client, "[SM] %t", "Invalid Amount"); return Plugin_Handled;