HLMOD.HU Forrás Megtekintés
- www.hlmod.hu/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "ip tabla"
#define AUTHOR "HoBaK"
#define STR_LEN 32
public plugin_init() {
register_plugin("Show IP Steam Id and Map", "0.1", "HoBaK")
register_concmd("amx_iptabla", "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, "=============Jelenlegi jatekosok============")
console_print(id, "")
console_print(id, " - Nevek - IP cimek - Steam ID - Csapat")
for(new i = 0; i < num; i++)
{
new name[32];
new szIp[32];
new steamid[32];
new team[32];
get_user_name(players[i], name, charsmax(name))
get_user_ip(players[i], szIp, charsmax(szIp), 0)
get_user_authid(players[i], steamid , charsmax(steamid))
get_user_team(players[i], team, charsmax(team))
console_print(id, " - %s - %s - %s - %s", name, szIp, steamid, team)
}
console_print(id, "============Szerver Informacio============")
new Time = get_user_time(id)
new timeleft = get_timeleft()
new mapname[32];
get_mapname(mapname, 31)
console_print(id, "Jelenlegi map: %s", mapname)
console_print(id, "neked %d olesed es %d halalod van",get_user_frags(id), get_user_deaths(id) )
console_print(id, "jatszott ido a szerveren %d:%02d min",(Time / 60), (Time % 60))
console_print(id, "Ido lejarat :%d:%02d min",(timeleft / 60), (timeleft % 60))
console_print(id, "Online Jatekosok : %d.", num);
console_print(id, "============Szerver Informacio============")
console_print(id, "")
console_print(id, "Jo jatekot!")
return PLUGIN_HANDLED
}