下面是引用 绝影华 于 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
}