killersmiley
7th May 2016, 11:40
I have a problemm
I have found in call of duty 2 and have the built in my mod in coduo
and it's also when I show my weapon on a player then me the info is displayed on the player how much does he score
but I mus very close to the player are and just because klapt that now the question how do I do that best that the distance is no issue and if I'm in a house and the other player is down and I player on because of the window display is the info is not shown to you have an ide
PlayersSee()
{
while(1)
{
trace = bullettrace(self geteye(),self geteye()+maps\mp\_utility::vectorscale(anglestofor ward(self getPlayerAngles()),99999),true,self);
if(isplayer(trace["entity"]))
{
if(!isdefined(self.info))
{
self.info = newClientHudElem(self);
self.info.alignx = "center";
self.info.x = 320;
self.info.y = 240;
self.info.alpha = 1;
self.info.fontscale = 0.8;
self.info.label = &"score:";
self.info setValue(trace["entity"].score);
}
}
if(!isplayer(trace["entity"]) && isdefined(self.info))
self.info destroy();
wait 0.1;
}
}
I have found in call of duty 2 and have the built in my mod in coduo
and it's also when I show my weapon on a player then me the info is displayed on the player how much does he score
but I mus very close to the player are and just because klapt that now the question how do I do that best that the distance is no issue and if I'm in a house and the other player is down and I player on because of the window display is the info is not shown to you have an ide
PlayersSee()
{
while(1)
{
trace = bullettrace(self geteye(),self geteye()+maps\mp\_utility::vectorscale(anglestofor ward(self getPlayerAngles()),99999),true,self);
if(isplayer(trace["entity"]))
{
if(!isdefined(self.info))
{
self.info = newClientHudElem(self);
self.info.alignx = "center";
self.info.x = 320;
self.info.y = 240;
self.info.alpha = 1;
self.info.fontscale = 0.8;
self.info.label = &"score:";
self.info setValue(trace["entity"].score);
}
}
if(!isplayer(trace["entity"]) && isdefined(self.info))
self.info destroy();
wait 0.1;
}
}