This commit is contained in:
jenzur 2020-08-24 01:18:32 +02:00
parent 74652f9d18
commit 77e371b1e6

View File

@ -274,7 +274,7 @@ public void OnPlayerRunCmdPost(int client, int buttons, int impulse, const float
public Action recursive_pressing(Handle timer, any data)
{
if (IsValidClient(present) && IsPlayerAlive(present))
if (IsValidClient(present))
{
if (GetClientTeam(present) == 1)
{
@ -282,6 +282,8 @@ public Action recursive_pressing(Handle timer, any data)
bot_send_connected_msg();
return Plugin_Continue;
}
if (IsPlayerAlive(present))
{
char message[generic_length * 7];
float present_bot_coords[3];
GetClientAbsOrigin(present, present_bot_coords);
@ -391,6 +393,7 @@ public Action recursive_pressing(Handle timer, any data)
send_socket_msg(message, strlen(message));
}
}
}
return Plugin_Continue;
}