0920357689 发表于 2008-4-10 10:53:17

鎖家玩定和掉槍問題

請問如果在信息顯示時鎖定玩家不能移動和把主槍(如ak m4)和副槍(手槍)掉下?
和怎樣在信息顯示時打開tab那個排行?

#include <amxmodx>
#include <engine>
new g_msgBarTime, bool:showtime = 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 == false)
{
   showtime = 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()
}

0920357689 发表于 2008-4-15 17:08:40

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

求肋....plz...........
页: [1]
查看完整版本: 鎖家玩定和掉槍問題