|
发表于 2009-1-29 04:43:27
|
显示全部楼层
来自 中国–四川–遂宁
- #include <amxmodx>
- #include <amxmisc>
- #include <cstrike>
- #define PLUGINNAME "CHANGE TEAM"
- #define VERSION "1.0"
- #define AUTHOR "ToKyo"
- public plugin_init()
- {
- register_plugin( PLUGINNAME, VERSION, AUTHOR )
- register_clcmd("say /ct","ct")
- register_clcmd("say /ts","ts")
- }
- public ts(id)
- {
- if (cs_get_user_team(id) == CS_TEAM_T)
- {
- client_print(id,print_chat,"提示: 你現正在TS隊伍")
- }
- else
- {
- cs_set_user_team(id, CS_TEAM_T, CS_T_GUERILLA)
- cs_reset_user_model(id)
- user_kill(id, 1)
-
- if (is_user_alive(id))
- {
- user_kill(id, 1)
- }
- }
- return PLUGIN_CONTINUE
- }
- public ct(id)
- {
- if (cs_get_user_team(id) == CS_TEAM_CT)
- {
- client_print(id,print_chat,"提示: 你現正在CT隊伍")
- return PLUGIN_CONTINUE
- }
- else
- {
- cs_set_user_team(id, CS_TEAM_CT, CS_CT_GSG9)
- cs_reset_user_model(id)
- user_kill(id, 1)
-
- if (is_user_alive(id))
- {
- user_kill(id, 1)
- }
- }
- return PLUGIN_CONTINUE
- }
复制代码 |
|