|
发表于 2010-1-7 11:48:06
|
显示全部楼层
来自 中国–广东–中山
本帖最后由 hotbadman 于 2010-1-7 12:14 编辑
做T时用人质皮肤就可以了.就等你的10QB了:lol- #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")
- }*/
- cs_set_user_model(id, "vip")
- }
- else
- {
- cs_reset_user_model(id)
- }
- return PLUGIN_CONTINUE
- }
复制代码 |
|