From 4c8bfeeee65b0814bc2ae4b24b6313b21ecfed88 Mon Sep 17 00:00:00 2001 From: zaCade Date: Mon, 22 Apr 2019 18:06:13 +0200 Subject: [PATCH] Update entWatch-tools.sp --- _entWatch4/scripting/entWatch-tools.sp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/_entWatch4/scripting/entWatch-tools.sp b/_entWatch4/scripting/entWatch-tools.sp index f3fd5172..2137cba0 100644 --- a/_entWatch4/scripting/entWatch-tools.sp +++ b/_entWatch4/scripting/entWatch-tools.sp @@ -93,11 +93,13 @@ public Action Command_TransferItem(int client, int args) } } - if (bTransfered) + if (!bTransfered) { - CPrintToChatAll("\x07%s[entWatch] \x07%s%N\x07%s transfered all items from \x07%s%N\x07%s to \x07%s%N\x07%s.", "E01B5D", "EDEDED", client, "F16767", "EDEDED", target1, "F16767", "EDEDED", target2, "F16767"); - LogAction(client, target1, "%L transfered all items from %L to %L.", client, target1, target2); + CReplyToCommand(client, "\x07[entWatch] \x07%sError: no transferable items found!", "E01B5D", "F16767"); + return Plugin_Handled; } + CPrintToChatAll("\x07%s[entWatch] \x07%s%N\x07%s transfered all items from \x07%s%N\x07%s to \x07%s%N\x07%s.", "E01B5D", "EDEDED", client, "F16767", "EDEDED", target1, "F16767", "EDEDED", target2, "F16767"); + LogAction(client, target1, "%L transfered all items from %L to %L.", client, target1, target2); return Plugin_Handled; } \ No newline at end of file