|
发表于 2010-12-29 16:36:13
|
显示全部楼层
来自 中国–四川–成都
别下一楼的没源码
下面有个源码,说是B权限当T时用人质的服装,当CT时用VIP的服装
没试过- #include <amxmodx>
- #include <amxmisc>
- #include <cstrike>
- #define PLUGIN_NAME "OP Models"
- #define PLUGIN_VERSION "1.0"
- #define PLUGIN_AUTHOR "HotBadmaN"
- public plugin_init()
- {
- register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
- register_event("ResetHUD", "resetModel", "b")
- }
- public resetModel(id)
- {
- if(!is_user_connected(id))
- return PLUGIN_CONTINUE
- new CsTeams:userTeam = cs_get_user_team(id)
- new flags = get_user_flags(id)
- if (flags & ADMIN_ADMIN)
- {
- if (userTeam == CS_TEAM_T)
- {
- cs_set_user_model(id, "hostage")
- }
- else if(userTeam == CS_TEAM_CT)
- {
- cs_set_user_model(id, "vip")
- }
- }
- else
- {
- cs_reset_user_model(id)
- }
- return PLUGIN_CONTINUE
- }
复制代码 |
|