|
发表于 2007-12-17 21:52:27
|
显示全部楼层
|阅读模式
来自 中国–广西–玉林
我都按照下面去做了可就是没有穿上OP服装,OP权限我从A开到U了,MENU都能出来为什么服装就是不出来呢?下面说的MNO权限是在那里设置的,救命啊
已经测试通过
M权限OP服装,N权限VIP服装,O权限女装!
DCOO3266版本里自带二个VIP和女装。玩家要是使用DCOO版本,就无须下载后面两个模型
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
public plugin_init() {
register_plugin("AMX Admin Model", "1.1.1", "whitemike | C.H.M")
register_event("ResetHUD", "resetModel", "b")
return PLUGIN_CONTINUE
}
public plugin_precache() {
precache_model("models/player/admin_ct/admin_ct.mdl")
precache_model("models/player/admin_te/admin_te.mdl")
precache_model("models/player/dcoo_liumang_ct/dcoo_liumang_ct.mdl")
precache_model("models/player/dcoo_liumang_t/dcoo_liumang_t.mdl")
precache_model("models/player/dcoo_girl_ct2/dcoo_girl_ct2.mdl")
precache_model("models/player/dcoo_girl_t1/dcoo_girl_t1.mdl")
return PLUGIN_CONTINUE
}
public resetModel(id, level, cid)
{
if (get_user_flags(id) & ADMIN_LEVEL_A)
{
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_T)
{
cs_set_user_model(id, "admin_te")
}
else
{ if (userTeam == CS_TEAM_CT)
{
cs_set_user_model(id, "admin_ct")
}
}
}
else
{
if (get_user_flags(id) & ADMIN_LEVEL_C)
{
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_T)
{
cs_set_user_model(id, "dcoo_girl_t1")
}
else
{ if (userTeam == CS_TEAM_CT)
{
cs_set_user_model(id, "dcoo_girl_ct2")
}
}
}
else
{
if (get_user_flags(id) & ADMIN_LEVEL_B)
{
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_T)
{
cs_set_user_model(id, "dcoo_liumang_t")
}
else
{
if (userTeam == CS_TEAM_CT)
{
cs_set_user_model(id, "dcoo_liumang_ct")
}
}
}
else
{
cs_reset_user_model(id)
}
}
}
return PLUGIN_CONTINUE
}
这是我修改后的
precache_model("models/player/YLJYOPCT/YLJYOPCT.mdl")
precache_model("models/player/YLJYOPT/YLJYOPT.mdl")
precache_model("models/player/YLJYVIPCT/YLJYVIPCT.mdl")
precache_model("models/player/YLJYVIPT/YLJYVIPT.mdl")
precache_model("models/player/YLJYMMCT/YLJYMMCT.mdl")
precache_model("models/player/YLJYMMT/YLJYMMT.mdl")
USER.INI下的设置
; 权限标记:
; a - immunity (能被 踢/封/处死/扇耳光 或者其他的命令影响)
; b - reservation (通过预留通道加入服务器)
; c - amx_kick command (拥有KICK权限)
; d - amx_ban and amx_unban commands (拥有ban的权限)
; e - amx_slay and amx_slap commands (拥有强行杀死某人的权限)
; f - amx_map command (拥有更换地图的权限)
; g - amx_cvar command (可以设置amx的参数,但并不是所有的都可以)
; h - amx_cfg command (可以加载某个AMX的CFG设置文件权限)
; i - amx_chat and other chat commands (可以以管理员身份发布消息)
; j - amx_vote and other vote commands (可以发起一个投票事件)
; k - access to sv_password cvar (by amx_cvar command) (可以更改为服务器加密码)
; l - access to amx_rcon command and rcon_password cvar (by amx_cvar command) (可以用RCON命令来以OP身份登陆服务器)
; m - custom level A (for additional plugins) (自定义管理级别,为附加的其他插件预留的权限等级)
; n - custom level B
; o - custom level C
; p - custom level D
; q - custom level E
; r - custom level F
; s - custom level G
; t - custom level H
; u - menu access (拥有打开MENU管理菜单的权限)
; z - user (no admin) (普通用户权限)
; 账号标记:
; a - disconnect player on invalid password (不正确密码时断开连接该玩家)
; b - clan tag (部落标记)
; c - this is steamid/wonid (这是steamid或者wonid)
; d - this is ip (这是IP地址)
; e - password is not checked (only name/ip/steamid needed) (不检查密码,只需要 名字 或 IP地址 或 steamid)
; 密码:
; 在自己的autoexec.cfg里加入: setinfo _pw "管理员密码"
; 此处 _pw 代表的是参数 amx_password_field 设定的密码
; 管理员帐号格式:
; <name|ip|steamid> <password> <access flags> <account flags>
; <名字|ip|steamid> <管理员密码> <权限等级> <帐号标记>
; 管理员账号的例子:
; "STEAM_0:0:123456" "" "abcdefghijklmnopqrstu" "ce"
; "123.45.67.89" "" "abcdefghijklmnopqrstu" "de"
; "My Name" "my_password" "abcdefghijklmnopqrstu" "a"
"www" "www" "abcdefghijklmnoprstu" "a"
谁能告诉我在那里设置权限啊?就是说设置穿OP服装的是用O或P之类的在那里设置 |
|