Hi,
i have entity have one classname and there is ent for red team and ent for blue i want make beam spr between player "id" and ent for each team :
am using this :
Код:
new entclass = find_ent_by_class(-1,"entclass");
message_begin(MSG_BROADCAST, SVC_TEMPENTITY, _, id) //message begin
write_byte(TE_BEAMENTS)
write_short(id) // start entity
write_short(entclass) // end entity
write_short(gSprite); //beam model
write_byte(1);
write_byte(1);
write_byte(1); //life
write_byte(120); //width
write_byte(1); //spread
write_byte(iEntTeam == TEAM_BLUE ? 100 : 0)
write_byte(1)
write_byte(iEntTeam == TEAM_RED ? 155 : 0)
write_byte(255);
write_byte(0);
message_end();