複製程式
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檔出錯的地方 怎樣才可以修改像不用拆彈包就拆慢些
拆彈包就拆快些
那裡出錯???
而且用拆彈包 就顯示用拆彈包拆彈
而不用拆彈包 就顯示末使用拆彈包拆彈