複製程式
#include <amxmodx>
new lastammo[33]
public plugin_init()
{
register_plugin("War Weapon Tracers","0.9","Hephaistos")
register_event("CurWeapon","make_tracer","be","1=1","3>0")
}
public make_tracer(id)
{
new ammo = read_data(3)
if ( lastammo[id] > ammo )
{
new vec1[3], vec2[3]
get_user_origin(id,vec1,1)
get_user_origin(id,vec2,3)
message_begin(MSG_PAS, SVC_TEMPENTITY,vec1 )
write_byte( 6 )
write_coord(vec1[0])
write_coord(vec1[1])
write_coord(vec1[2])
write_coord(vec2[0])
write_coord(vec2[1])
write_coord(vec2[2])
message_end()
}
lastammo[id] = ammo
}
上方那代碼是顯是彈道的寫法
不過他是黃色的
要如何讓他顯示成其他顏色
會的教一下,感謝
另也會給300雅