|
public _show_sxe(id)
{
new sXe_url[256]
new sXe_version[64]
get_cvar_string("__sxei_clt_ver",sXe_version,63)
new usrname[33]
get_user_name ( id, usrname, 32)
if(equal(usrname,"[NO-sXe-I]",10)) {
format(sXe_url,255,"http://ftp.cgv.se/sxe/sXeInjectedClient%s.rar",sXe_version)
}
else format(sXe_url,255,"<head><META http-equiv=Content-Type content='text/html ;charset=UTF-8'></head><body bgcolor=black><center><font size=4 color=red>您已安装并使用与服务器相对应的sXe版本,无需下载</font>")
show_motd(id,sXe_url,"sXe客户端下载");
return 1;
}
public client_putinserver(id) g_bFirst_connect[id] = true;
//public client_disconnect (id) g_bFirst_connect[id] = false;
public eHud_reset(id)
{
if( !g_bFirst_connect[id] )
return;
//g_bFirst_connect[id] = true;
set_task( MSG_DELAY,"PrintDelayed",id);
}
public PrintDelayed(id)
{
new usrname[33]
get_user_name ( id, usrname, 32)
if(equal(usrname,"[NO-sXe-I]",10))
client_print(id,print_chat," 【提示】未安装sXe,请按 Y 输入/sxe下载sXe");
}
|
|