复制程式
g_defusing[id] = targetid
set_user_maxspeed(id, -1.0)
emit_sound(targetid, CHAN_WEAPON, "weapons/c4_disarm.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
if(entity_get_byte(id, OFFSET_DEFUSE_PLANT) & HAS_DEFUSE_KIT)
{
message_begin(MSG_ONE, g_msgBarTime, {0,0,0}, id)
write_byte(5)
write_byte(0)
message_end()
new param[3]
param[0] = targetid
param[1] = id
set_task(5.0, "defused", 3456789+id, param, 2)
message_begin(MSG_ONE, g_msgTextMsg, {0,0,0}, id)
write_byte(4)
write_string("#Defusing_Bomb_With_Defuse_Kit")
message_end()
}
else
{
message_begin(MSG_ONE, g_msgBarTime, {0,0,0}, id)
write_byte(10)
write_byte(0)
message_end()
new param[3]
param[0] = targetid
param[1] = id
set_task(10.0, "defused", 3456789+id, param, 2)
message_begin(MSG_ONE, g_msgTextMsg, {0,0,0}, id)
write_byte(4)
write_string("#Defusing_Bomb_Without_Defuse_Kit")
message_end()
这是假c4 sma档出错的地方 怎样才可以修改像不用拆弹包就拆慢些
拆弹包就拆快些
那里出错???
而且用拆弹包 就显示用拆弹包拆弹
而不用拆弹包 就显示末使用拆弹包拆弹