- 听众
- 收听
- 积分
- 3894
- 主题
- 回帖
- 0
- 精华
注册时间2008-4-22
最后登录1970-1-1
该用户从未签到
|
发表于 2011-12-29 21:40:05
|
显示全部楼层
上帝模式?
- /* 欢迎光临赛盟极限跳跃网 Kz.SiMen.cn 本信息由 AMXX-Studio 自动生成 */
- #include <amxmodx>
- #include <amxmisc>
- #include <colorchat>
- #include <fun>
- #define PLUGIN "New Plug-In"
- #define VERSION "1.0"
- #define AUTHOR "Administrator"
- new bool:g_bGod[33]
- public plugin_init()
- {
- register_plugin( PLUGIN, VERSION, AUTHOR )
- register_clcmd("say /god", "ClientCommand_God", ADMIN_LEVEL_C)
- }
- public client_putinserver(id)
- {
- g_bGod[id] = false
- }
- public ClientCommand_God(id, level, cid)
- {
- if( !cmd_access(id, level, cid, 1) )
- {
- return PLUGIN_HANDLED
- }
- if( (g_bGod[id] = !g_bGod[id]) )
- {
- set_user_godmode(id, 1)
- set_user_rendering(id, _, _, _, _, kRenderTransAlpha, 0)
- ColorChat(id, RED, "^x04[SiMen]^x03 上帝模式开启 !");
- }
- else
- {
- set_user_godmode(id, 0)
- set_user_footsteps(id, 0)
- set_user_rendering(id)
- ColorChat(id, RED, "^x04[SiMen]^x03 上帝模式关闭 !")
- }
- return PLUGIN_HANDLED
- }
复制代码
|
|