Commit a086ef95 authored by JoyJ's avatar JoyJ

add a center text

parent 2415894a
...@@ -55,13 +55,19 @@ public Action PlayerDeathFunc(Event event, const char[] name, bool dontBroadcast ...@@ -55,13 +55,19 @@ public Action PlayerDeathFunc(Event event, const char[] name, bool dontBroadcast
return Plugin_Continue; return Plugin_Continue;
} }
kMoney = -AddMoney(victim, -kMoney); kMoney = -AddMoney(victim, -kMoney);
if (kMoney == 0)
{
return Plugin_Continue;
}
int aMoney = kMoney * aRate / 100; int aMoney = kMoney * aRate / 100;
if (assister>0) if (assister>0)
{ {
kMoney -= aMoney; kMoney -= aMoney;
AddMoney(assister, aMoney); AddMoney(assister, aMoney);
PrintCenterText(assister,"你获得了 %i 的助攻金钱",kMoney);
} }
AddMoney(killer, kMoney); AddMoney(killer, kMoney);
PrintCenterText(killer,"你获得了 %i 的击杀金钱",kMoney);
return Plugin_Continue; return Plugin_Continue;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment