Fixed compiling errors
This commit is contained in:
parent
8edf223dc1
commit
b1f8de9526
|
@ -245,7 +245,7 @@ public Action:EventPlayerDeath(Handle:event, const String:name[], bool:dontBroad
|
|||
// Forward event to modules.
|
||||
ClassOnClientDeath(index);
|
||||
RoundEndOnClientDeath();
|
||||
InfectOnClientDeath();
|
||||
InfectOnClientDeath(index, attacker);
|
||||
SEffectsOnClientDeath(index);
|
||||
SpawnProtectOnClientDeath(index);
|
||||
RespawnOnClientDeath(index, attacker, weapon);
|
||||
|
|
|
@ -234,7 +234,7 @@ InfectOnClientSpawn(client)
|
|||
InfectOnClientDeath(client, attacker)
|
||||
{
|
||||
// If attacker isn't valid, then stop.
|
||||
if (!ZRIsValidClient(attacker))
|
||||
if (!ZRIsClientValid(attacker))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
@ -252,7 +252,7 @@ InfectOnClientDeath(client, attacker)
|
|||
}
|
||||
|
||||
// Add kill bonus to attacker's score.
|
||||
new bonus = ClassGetKillBonus(index);
|
||||
new bonus = ClassGetKillBonus(client);
|
||||
new score = ToolsClientScore(attacker, true, false);
|
||||
ToolsClientScore(attacker, true, true, score + bonus);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user