|
发表于 2013-2-23 19:59:45
|
显示全部楼层
来自 中国–山东–烟台
- public Messages(id)
- {
- id -= TASK_MESS
-
- if(get_pcvar_num(g_mess) == 1 || get_pcvar_num(g_mess) == 3)
- {
- if(!is_registered[id])
- {
- if(get_pcvar_num(g_regtime) != 0)
- {
- set_hudmessage(255, 0, 0, -1.0, -1.0, 0, 0.5, 5.0, 2.0, 2.0, -1)
- show_hudmessage(id, "%L", LANG_SERVER, "REGISTER_HUD", get_pcvar_num(g_regtime))
- }
- else
- {
- set_hudmessage(0, 255, 0, 0.2, 0.1, 0, 0.5, 5.0, 2.0, 2.0, -1)
- show_hudmessage(id, "%L", LANG_SERVER, "YOUCANREG_HUD", get_pcvar_num(g_regtime))
- }
- return PLUGIN_CONTINUE //把这个去掉就是没注册的进入服务器后菜单自动弹出
- }
- else if(!is_logged[id])
- {
- set_hudmessage(255, 0, 0, -1.0, -1.0, 0, 0.5, 5.0, 2.0, 2.0, -1)
- show_hudmessage(id, "%L", LANG_SERVER, "LOGIN_HUD", get_pcvar_num(g_logtime))
- }
- else
- {
- set_hudmessage(0, 255, 0, -1.0, -1.0, 0, 0.5, 5.0, 2.0, 2.0, -1)
- show_hudmessage(id, "%L", LANG_SERVER, "AUTO_LOGIN_HUD")
- }
- }
- if(get_pcvar_num(g_mess) == 2 || get_pcvar_num(g_mess) == 3)
- {
- if(!is_registered[id])
- {
- if(get_pcvar_num(g_regtime) != 0)
- {
- client_printcolor(id, "%L", LANG_SERVER, "REGISTER_CHAT", prefix, get_pcvar_num(g_regtime))
- }
- else
- {
- client_printcolor(id, "%L", LANG_SERVER, "YOUCANREG_CHAT", prefix, get_pcvar_num(g_regtime))
- }
- }
- else if(!is_logged[id])
- {
- client_printcolor(id, "%L", LANG_SERVER, "LOGIN_CHAT", prefix, get_pcvar_num(g_logtime))
- }
- else
- {
- client_printcolor(id, "%L", LANG_SERVER, "AUTO_LOGIN_CHAT", prefix)
- }
- }
- Menu(id)
- }
复制代码 小修改 非强迫 未注册玩家进服后 不自动弹出菜单 已注册的玩家进服后自动弹出菜单 |
|