I will show you based on this code:
Code:
if(self.name == Loveboy) //<- for example if player got name "Loveboy" then continue
{
players = getentarray("player", "classname");
aimedplayer = undefined; //undefined yet
for(i = 0; i < players.size; i++)
{
if(self islookingat (players[i]) ) //here is used IsLookingAt function... so if player is looking at the target(on other player) then continue also...
{
aimedplayer = players[i];
players[i] iprintlnBold("something!") //this text is visible only for aimed player...
}
}
}
I hope you understand now, if you have questions write.