Fixed compiling errors

This commit is contained in:
Greyscale 2009-05-20 22:42:45 -07:00
parent 8edf223dc1
commit b1f8de9526
2 changed files with 3 additions and 3 deletions

View File

@ -245,7 +245,7 @@ public Action:EventPlayerDeath(Handle:event, const String:name[], bool:dontBroad
// Forward event to modules. // Forward event to modules.
ClassOnClientDeath(index); ClassOnClientDeath(index);
RoundEndOnClientDeath(); RoundEndOnClientDeath();
InfectOnClientDeath(); InfectOnClientDeath(index, attacker);
SEffectsOnClientDeath(index); SEffectsOnClientDeath(index);
SpawnProtectOnClientDeath(index); SpawnProtectOnClientDeath(index);
RespawnOnClientDeath(index, attacker, weapon); RespawnOnClientDeath(index, attacker, weapon);

View File

@ -234,7 +234,7 @@ InfectOnClientSpawn(client)
InfectOnClientDeath(client, attacker) InfectOnClientDeath(client, attacker)
{ {
// If attacker isn't valid, then stop. // If attacker isn't valid, then stop.
if (!ZRIsValidClient(attacker)) if (!ZRIsClientValid(attacker))
{ {
return; return;
} }
@ -252,7 +252,7 @@ InfectOnClientDeath(client, attacker)
} }
// Add kill bonus to attacker's score. // Add kill bonus to attacker's score.
new bonus = ClassGetKillBonus(index); new bonus = ClassGetKillBonus(client);
new score = ToolsClientScore(attacker, true, false); new score = ToolsClientScore(attacker, true, false);
ToolsClientScore(attacker, true, true, score + bonus); ToolsClientScore(attacker, true, true, score + bonus);
} }