- 听众
- 收听
- 积分
- 373
- 主题
- 回帖
- 0
- 精华
注册时间2009-1-6
最后登录1970-1-1
该用户从未签到
|
本帖最后由 lovehuai 于 2009-8-15 05:43 编辑
现在那几个平台的死亡服道具都有这个
尝试些了下
可用如果如果老鸟发现BUG请指点下
hoho
发现些插件还蛮有意思-
- #include <amxmodx>
- #include <fun>
- #include <cstrike>
- #define PLUGIN_NAME "Set Vip HP"
- #define PLUGIN_VERSION "1.0"
- #define PLUGIN_AUTHOR "lovehuai"
- public plugin_init()
- {
- register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
- set_task(1.0,"run_check",422,"",0,"b")
- }
- public run_check(){
- if (get_cvar_num("gg_replinishhealth")==0) return PLUGIN_CONTINUE
- new players[32]
- new i, numofplayers, id
- get_players(players, numofplayers)
- for (i=0; i<numofplayers; i++){
- id=players
- if (!is_user_alive(id)) continue
- SetHp(id)
- }
- return PLUGIN_CONTINUE
- }
- public SetHp(id)
- {
- if(get_user_flags(id) & ADMIN_LEVEL_C)
- {
- new armor = (get_user_armor (id)) +5
- new health = (get_user_health (id)) +5
- if ( armor > 100) {
- cs_set_user_armor(id, 100, CS_ARMOR_VESTHELM)
- }
- else {
- cs_set_user_armor(id, armor, CS_ARMOR_VESTHELM)
- }
- if ( health > 100) {
- set_user_health (id,100)
- }
- else {
- set_user_health (id,health)
- }
- }
- }
复制代码 |
|