fixed movement
This commit is contained in:
parent
d0e2956e84
commit
93c6d53f7a
@ -238,6 +238,8 @@ public Action bot_check_connect(Handle timer, any data)
|
||||
GetClientIP(i, ip_addr, sizeof(ip_addr));
|
||||
if (client_count > 61)
|
||||
{
|
||||
found_bot_1 = true;
|
||||
found_bot_2 = true;
|
||||
char msg[generic_length];
|
||||
if (StrEqual(ip_addr, "127.0.0.1"))
|
||||
{
|
||||
@ -675,7 +677,7 @@ public int GetClosestClient_option1(int targeteam, int client)
|
||||
float nearestdistance = -1.0;
|
||||
int nearest = -1;
|
||||
for (int i = 1; i <= MaxClients; i++)
|
||||
if (IsValidClient(i) && IsPlayerAlive(i) && GetClientTeam(i) == targeteam)
|
||||
if (IsValidClient(i) && IsPlayerAlive(i) && GetClientTeam(i) == targeteam && i != client)
|
||||
{
|
||||
if (!IsAbleToSee(client, i))
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user