Code:
#include <amxmodx>
#include <amxmisc>
public plugin_init()
{
register_plugin("new ban system 2", "0.1", "Opik");
register_concmd("amx_ip2", "cmdip", ADMIN_BAN, "<name or #userid>")
}
public cmdip(id, level, cid)
{
if (!cmd_access(id, level, cid, 2))
return PLUGIN_HANDLED
new arg[32]
read_argv(1, arg, 31)
new player = cmd_target(id, arg, 5)
if (!player)
return PLUGIN_HANDLED
if (!is_user_bot(player)) query_client_cvar(player, "net_address", "cvar_result_func", id);
return PLUGIN_HANDLED
}
public cvar_result_func(id, const cvar[], const value[], test)
{
new name[32];
get_user_name(id, name, 31);
console_print(test, "%s local ip is: %s", name, value)
}
hlds crashes:
Quote:
./hlds_run: line 342: 16157 Segmentation fault (core dumped) $HL_CMD
gdb: Symbol `emacs_ctlx_keymap' has different size in shared object, consider re-linking
"/home/tpyn/opik/CWSERVER/core.16157" is not a core dump: File truncated
debug.cmds:1: Error in sourced command file:
No stack.
|
debug.log:
Quote:
CRASH: Tue Jun 20 11:53:04 EEST 2006
Start Line: ./hlds_i686 -game cstrike -debug +sv_lan 1 +map de_dust2 +maxplayers 18 +port 27020 -pingboost 2 + mapchangecfgfile server.cfg -nomaster -pidfil$
Using host libthread_db library "/lib/tls/libthread_db.so.1".
End of crash report
|