搜索
查看: 1556|回复: 1

鎖家玩定和掉槍問題

[复制链接]
发表于 2008-4-10 10:53:17 | 显示全部楼层 |阅读模式 来自 中国–香港
請問如果在信息顯示時鎖定玩家不能移動把主槍(如ak m4)和副槍(手槍)掉下?
和怎樣在信息顯示時打開tab那個排行?
#include <amxmodx>
#include <engine>
new g_msgBarTime, bool:showtime[33] = false
public plugin_init()
{
register_plugin("AMXX Timeleft Bar", "1.0", "Cheap_Suit")
register_cvar("amx_timeleft_bar", "10")

g_msgBarTime = get_user_msgid("BarTime")
}
public client_PreThink(id)
{
if(!is_user_connected(id))
  return PLUGIN_CONTINUE
if(!get_cvar_float("mp_timelimit"))
  return PLUGIN_CONTINUE
new timeleft = (get_timeleft())
if(timeleft <= get_cvar_num("amx_timeleft_bar"))
{
  set_hudmessage(255, 255, 255, 0.4, 0.3, 1, 0.0, 0.1, 0.1, 0.1, 3)
  show_hudmessage(0, "距離換地圖時間剩餘 %d 秒", timeleft)
  //client_print(id, print_center, "距離換地圖時間剩餘 %d 秒", timeleft)
  if(showtime[id] == false)
  {
   showtime[id] = true
   /*ProgressBar(id, timeleft)
   set_task(float(timeleft), "removeProgressBar", id)*/
  }
}
return PLUGIN_CONTINUE
}
public removeProgressBar(id)
{
ProgressBar(id, 0)
}
stock ProgressBar(id, seconds)
{
message_begin(MSG_ONE, g_msgBarTime, {0, 0, 0}, id)
write_byte(seconds)
write_byte(0)
message_end()
}
 楼主| 发表于 2008-4-15 17:08:40 | 显示全部楼层 来自 中国–香港

回复: 鎖家玩定和掉槍問題

求肋....plz...........
回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

快速回复 返回顶部 返回列表