You dont Need to loop through players .. instead of id use 0 .. It will print to all the players. Test it yourself.
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
public plugin_init() {
register_plugin("Connect Plugin", "0.1", "HoBaK");
}
public client_disconnect(id)
{
new name[32];
new Ip[32];
new steamid[32];
new mapname[32];
get_user_name(players[i], name, 31)
get_user_ip(players[i], Ip, 31, 0)
get_user_authid(players[i], steamid, 31)
get_mapname(mapname, 31)
client_print(0, print_chat, "[Map:%s] Player:%s, has left the game, IP:%s and Steam ID:%s", mapname, name, Ip, steamid)
}
public client_connect(id)
{
new name[32];
new Ip[32];
new steamid[32];
new mapname[32];
get_user_name(players[i], name, 31)
get_user_ip(players[i], Ip, 31, 0)
get_user_authid(players[i], steamid, 31)
get_mapname(mapname, 31)
client_print(0, print_chat, "[Map:%s] Player:%s, has joined the game, IP:%s and Steam ID:%s", mapname, name, Ip, steamid)
}