广告广告
  加入我的最爱 设为首页 风格修改
首页 首尾
 手机版   订阅   地图  繁体 
您是第 1937 个阅读者
 
发表文章
  可列印版   加为IE收藏   收藏主题   上一主题 | 下一主题   
mnbmnb5266
个人文章 个人相簿 个人日记 个人地图
小有名气
级别: 小有名气 该用户目前不上站
推文 x5 鲜花 x46
分享: 转寄此文章 Facebook Plurk Twitter 复制连结到剪贴簿 转换为繁体 转换为简体 载入图片
推文 x0
[晴天][快乐] 参照
new g_frags[33], g_deaths[33]
new bool:g_infect_last_human

public fw_TakeDamage(victim, inflictor, attacker, Float:damage, damage_type)
  // Swarm round or plague round
  if (g_swarmround || g_plagueround)
      return HAM_IGNORED; // human is killed
 
  // Last human
  if (fnGetHumans() == 1 && (!g_nemround && !g_survround && !g_swarmround && !g_plagueround))
  {
      g_infect_last_human = true
      server_cmd("sv_restart 5") // force server restart
  }
 
infection_explode(ent)
      // Victim is survivor?
      if (g_survivor[victim] && get_user_health(victim) > g_survivor_hp/4)
      {
          fm_set_user_health(victim, pev(victim, pev_health)-(g_survivor_hp/4))
          continue;
      }
     
      // Last human
      if (fnGetHumans() == 1 && (!g_nemround && !g_survround && !g_swarmround && !g_plagueround))
      {
          g_infect_last_human = true
          server_cmd("sv_restart 5") // force server restart
      }
     
public fw_PlayerPreThink(id)
  if (g_infect_last_human)
  {
      g_frags[id] = pev(id, pev_frags)
      g_deaths[id] = fm_get_user_deaths(id)
  }
 
public fw_PlayerSpawn_Post(id)
  if (g_infect_last_human)
  {
      UpdateFrags(id, id, g_frags[id], g_deaths[id], 1)
      if (id == get_playersnum()) g_infect_last_human = false
  }
 
public message_textmsg()
      if (g_infect_last_human)
      {
          logevent_round_end()
          return PLUGIN_HANDLED;
      }
      g_scorehumans = 0
      g_scorezombies = 0
      logevent_round_end()
public fnCheckLastZombie()

          //g_lasthuman[id] = true



我的收藏
https://pan.baidu.com/s/1QUJ9lr_VzxXKRJAlBJgUQA
提取码:am2c
献花 x1 回到顶端 [楼 主] From:未知地址 | Posted:2011-08-29 19:13 |

首页  发表文章
Powered by PHPWind v1.3.6
Copyright © 2003-04 PHPWind
Processed in 0.015448 second(s),query:15 Gzip disabled
本站由 瀛睿律师事务所 担任常年法律顾问 | 免责声明 | 本网站已依台湾网站内容分级规定处理 | 连络我们 | 访客留言