下面是引用 絕影華 於 2012-02-01 02:41 發表的 :
如果我想顯示spr在NPC頭上....
應該要怎樣寫.....抓了很多文都完全沒有頭緒
複製程式
ShowSpr(id)
{
static Float:origin[3];
pev(id,pev_origin,origin);
message_begin(MSG_BROADCAST,SVC_TEMPENTITY);
write_byte(TE_EXPLOSION); // TE_EXPLOSION
write_coord(floatround(origin[0])); // origin x
write_coord(floatround(origin[1])); // origin y
write_coord(floatround(origin[2])); // origin z
write_short(idsprites); // sprites
write_byte(15); // scale in 0.1's
write_byte(12); // framerate
write_byte(14); // flags
message_end(); // message end
}