|
发表于 2008-5-19 14:19:36
|
显示全部楼层
来自 中国–北京–北京–海淀区
回复: 关于投票选择地图的投票开始,那个按键声,请各位兄弟来帮忙下。
- public voteCount(id, key)
- {
- if(key == 9 && g_voteCaller == id)
- {
- client_print(0, print_chat, "%L", LANG_PLAYER, "VOT_CANC")
- remove_task(99889988)
- set_cvar_float("amx_last_voting", get_gametime())
- log_amx("Vote: Cancel vote session")
- return PLUGIN_HANDLED
- }else if(key>3 || !task_exists(99889988))
- return PLUGIN_HANDLED
- if (get_cvar_num("amx_vote_answers"))
- {
- new name[32]
- get_user_name(id, name, 31)
-
- if (g_yesNoVote)
- client_print(0, print_chat, "%L", LANG_PLAYER, key ? "VOTED_AGAINST" : "VOTED_FOR", name)
- else
- client_print(0, print_chat, "%L", LANG_PLAYER, "VOTED_FOR_OPT", name, key + 1)
- }
- ++g_voteCount[key]
-
- return PLUGIN_HANDLED
- }
复制代码 在这个函数里加 |
|