Quote:
for (int i = 1; i <= MaxClients; i++)
{
if (!IsClientInGame(i) || !IsFakeClient(i) || !IsPlayerAlive(i) || GetClientTeam(i) != 2 && (StringToInt(sInfo) != i))
continue;
PrintToChatAll("%N has selected %N.", param1, i);
return;
}
|
I'm sure this is the main issue, I dont know how to target the exact bot selected, which seems like I'm targeting all the bots instead of only the selected one.
__________________