Thread: [Solved] Lasermine Owner HUD Info
View Single Post
PowereXe
Member
Join Date: Jan 2017
Location: Turkey, Istanbul
Old 05-28-2017 , 06:24   Re: [REQ/SMA Edit] Lasermine Owner HUD Info
Reply With Quote #9

Quote:
Originally Posted by PartialCloning View Post
What does it say when aiming at the entity?

Replace the whole fw_TraceLine function with:
Code:
public fw_TraceLine(Float:fStart[3], Float:fEnd[3], Conditions, id, iTrace) {     static iHit, szClass[33], Owner, Float:Health, szMessage[80], nick[32];     if(pev_valid((iHit = get_tr2(iTrace, TR_pHit))))     {         pev(iHit, pev_classname, szClass, charsmax(szClass));         if(equali(szClass,"lasermine"))         {             Owner = pev(iHit, pev_iuser2);             pev(iHit, pev_health, Health);             get_user_name(Owner, nick, charsmax(nick));             formatex(szMessage, charsmax(szMessage), "Lazer Sahibi: %s -- Can: %.0f", nick, Health);             set_hudmessage(0, 102, 204, 0.5, 0.5, 0, 0.0, 1.0);             ShowSyncHudMsg(id, hudhandler, szMessage);         }     } }
Thanks Dude. It's Worked. Showed My Name. But I'm Not Sure About That In Public Server. Because Lasermine Health Seemed Wrong.
PowereXe is offline