PHP Code:
public Util_TE_BEAMFOLLOW(id, entity, sprite, life, width, red, green, blue, brightness)
{
message_begin(id ? MSG_ONE : MSG_ALL, SVC_TEMPENTITY, _, id);
write_byte(TE_BEAMFOLLOW);
write_short(entity);
write_short(sprite);
write_byte(life); // life in 0.1's
write_byte(width); // line width in 0.1's
write_byte(red);
write_byte(green);
write_byte(blue);
write_byte(brightness);
message_end();
}
public setTrail(id){
new players[32], num, player
get_players(players, num)
for(new i; i < num ; i++)
{
player = players[i]
if( g_bSeeTrails[player] )
{
Util_TE_BEAMFOLLOW(player, id, gl_sprite, 20, 5, 255, 0, 0, 100)
}
}
}
The bug is only showing up with one sprite. With all others it work