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.
|
// 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);
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user