找回密码
 立即注册

QQ登录

只需一步,快速开始

楼主: 0920357689

誰有一鍵進入觀眾或隊伍

[复制链接]

该用户从未签到

发表于 2009-7-14 19:55:26 | 显示全部楼层
本帖最后由 Simen.newbie 于 2009-7-14 19:56 编辑

#include <amxmodx>
#include <cstrike>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "<3 go"


public plugin_init() {
&#160; &#160; &#160; &#160; register_plugin(PLUGIN, VERSION, AUTHOR)
&#160; &#160; &#160; &#160; register_clcmd("say .spec", "join_spec")
&#160; &#160; &#160; &#160; register_clcmd("say .ct", "join_ct")
}

public join_spec(id)
{
&#160; &#160; &#160; &#160; user_kill(id)
&#160; &#160; &#160; &#160; cs_set_user_team(id, CS_TEAM_SPECTATOR)
&#160; &#160; &#160; &#160; return PLUGIN_HANDLED
}

public join_ct(id)
{
&#160; &#160; &#160; &#160; user_kill(id)
&#160; &#160; &#160; &#160; cs_set_user_team(id, CS_TEAM_CT)
&#160; &#160; &#160; &#160; return PLUGIN_HANDLED
}

该用户从未签到

发表于 2009-7-14 19:58:14 | 显示全部楼层
say .spec 变观察者
say .ct 变ct
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表