• whats wrong with this code?
    5 replies, posted
[CODE] if ( trace.Entity:IsPlayer() ) then local alpha = math.Clamp(255 - ( (255 / fadeDistance) * ( LocalPlayer():GetPos():Distance( trace.Entity:GetPos() ) ) ), 0, 255); -- Get the x and y position. local x, y = self:GetScreenCenterBounce(); -- Draw the player's name. y = self:DrawInformation(trace.Entity:Name(), "ChatFont", x, y, team.GetColor( trace.Entity:Team() ), alpha); -- Check if the player is in a clan. if (trace.Entity:GetNetworkedString("cider_Clan") != "") then y = self:DrawInformation("Clan: "..trace.Entity:GetNetworkedString("cider_Clan"), "ChatFont", x, y, Color(255, 255, 255, 255), alpha); end; -- Draw the player's job. y = self:DrawInformation("Job: "..trace.Entity:GetNetworkedString("cider_Job"), "ChatFont", x, y, Color(255, 255, 255, 255), alpha); elseif ( ValidEntity( trace.Entity:GetNetworkedEntity("cider_Player") ) ) then local player = trace.Entity:GetNetworkedEntity("cider_Player"); -- Check if the player is alive. if ( player:Alive() and player != LocalPlayer() ) then local alpha = math.Clamp(255 - ( (255 / fadeDistance) * ( LocalPlayer():GetPos():Distance( trace.Entity:GetPos() ) ) ), 0, 255); -- Get the x and y position. local x, y = self:GetScreenCenterBounce(); -- Draw the player's name. y = self:DrawInformation(player:Name(), "ChatFont", x, y, team.GetColor( player:Team() ), alpha); -- Check if the player is in a clan. if (player:GetNetworkedString("cider_Clan") != "") then y = self:DrawInformation("Clan: "..player:GetNetworkedString("cider_Clan"), "ChatFont", x, y, Color(255, 255, 255, 255), alpha); end; -- Draw the player's job. y = self:DrawInformation("Job: "..player:GetNetworkedString("cider_Job"), "ChatFont", x, y, Color(255, 255, 255, 255), alpha); end;[/CODE] and the pastebin link. [url]http://pastebin.com/9TzVc2a6[/url] you are a gawd if you tells me whats wrong :3
Why dont you tell us what the hell we're looking for? [editline]08:18PM[/editline] Why'd you make another thread? [url]http://www.facepunch.com/showthread.php?t=965230[/url] [editline]08:18PM[/editline] Get out.
Would help if we knew the problem
did garry update eyetrice or something?, i just heard it.
It's called eye tr[b]a[/b]ce, and I dont know.
[QUOTE=blown25;23155368]:bawchit::words:[/QUOTE] You're meant to tell us what's wrong with it.
Sorry, you need to Log In to post a reply to this thread.