PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define STR_LEN 32
public plugin_init() {
register_plugin("Show IP,Steam Id and Map", "0.1", "HoBaK")
register_concmd("amx_showip", "show", ADMIN_ALL, "List with player nick,ip,steam id and map to moment.")
}
public show(id)
{
new players[32], num
get_players(players, num)
console_print(id, "=============All Joined players on this server============")
console_print(id, "")
console_print(id, " - NickName - IP Adress - Steam ID - Map Name - Team")
for(new i = 0; i < num; i++)
{
new name[32];
new szIp[32];
new steamid[32];
new mapname[32];
new team[32];
get_user_frags(players[i])
get_user_name(players[i], name, 31)
get_user_ip(players[i], szIp, 31, 0)
get_user_authid(players[i], steamid ,31)
get_mapname(mapname, 31)
get_user_info(players[i],"team",team,18)
console_print(id, " - %s - %s - %s - %s - %s", name, szIp, steamid, mapname, team)
}
console_print(id, "You have %d kills and %d deaths",get_user_frags(id), get_user_deaths(id) )
console_print(id, "Play Time in seconds:%d", get_user_time(id))
console_print(id, "")
if (num == 1)
console_print(id, " - Have one player on this server.")
else if (num > 1)
console_print(id, " - %d players has playing now on this server.", num);
console_print(id, "")
console_print(id, "Powered by HoBaK")
return PLUGIN_HANDLED
}
/* Please don't change author of the plugin. */
Everything works as it should and only team to show.
Only yesterday did not show and still enters Terrosit and showed me CT