fixed amb1487 (sm_slap for negative damage)
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401905
This commit is contained in:
parent
82c57bb7b0
commit
5b2d36e386
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user