mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 14:25:38 +03:00
fixed querying invalid players
This commit is contained in:
parent
6c3e7e7ee0
commit
90c213bc6d
@ -322,6 +322,10 @@ public client_death(killer, victim, wpnindex, hitplace, TK)
|
|||||||
{
|
{
|
||||||
for (new i=1; i<=maxplayers; i++)
|
for (new i=1; i<=maxplayers; i++)
|
||||||
{
|
{
|
||||||
|
if (!is_user_connected(i))
|
||||||
|
{
|
||||||
|
continue
|
||||||
|
}
|
||||||
if (i == victim)
|
if (i == victim)
|
||||||
{
|
{
|
||||||
continue
|
continue
|
||||||
@ -368,7 +372,7 @@ public client_death(killer, victim, wpnindex, hitplace, TK)
|
|||||||
|
|
||||||
for (new i=1; i<=maxplayers; i++)
|
for (new i=1; i<=maxplayers; i++)
|
||||||
{
|
{
|
||||||
if (!is_user_alive(i))
|
if (!is_user_connected(i) || !is_user_alive(i))
|
||||||
{
|
{
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user