fixed querying invalid players

This commit is contained in:
David Anderson 2006-10-27 05:41:04 +00:00
parent 6c3e7e7ee0
commit 90c213bc6d

View File

@ -322,6 +322,10 @@ public client_death(killer, victim, wpnindex, hitplace, TK)
{
for (new i=1; i<=maxplayers; i++)
{
if (!is_user_connected(i))
{
continue
}
if (i == victim)
{
continue
@ -368,7 +372,7 @@ public client_death(killer, victim, wpnindex, hitplace, TK)
for (new i=1; i<=maxplayers; i++)
{
if (!is_user_alive(i))
if (!is_user_connected(i) || !is_user_alive(i))
{
continue
}