❓ wallhack customization?

Posts 1–4 of 4 · Page 1 of 1
[Help Request]wallhack customization?
Lets get to the point.

Today, I'm trying to make a wallhack that has the same effect as thermalFOF, but I would like to replace those squares with dead player icons. Help?

do you think this would work?

Code:
iconDisplay()
{
	self endon("disconnect");

	while(self ButtonPressed("BUTTON_B")
	{
	
		if(entity.team == "enemies")
		{
			iconOrigin = entity.getTagOrigin( "head");
			newenemyicon = newHudElem();
			newenemyicon.x = iconOrg[0];
			newenemyicon.y = iconOrg[1];
			newenemyicon.z = iconOrg[2];
			newenemyicon setShader("headicon_dead", 7, 7);
		}
		self iPrintlnBold( "Enabling Hack : HACK_WALLHACK");
	}
	wait .05;
}
UPDATED CODE:

Code:
iconDisplay()
{
	self endon("disconnect");

	for(;;)
	{
		while(self ButtonPressed("BUTTON_B"))
		{
		
			if(player.isHost = 0 && player.team == "axis" && player.isReallyAlive)
			{
				iconOrigin = player getTagOrigin( "head");
				newenemyicon = newHudElem();
				newenemyicon.x = iconOrigin[0];
				newenemyicon.y = iconOrigin[1];
				newenemyicon.z = iconOrigin[2];
				newenemyicon setShader("headicon_dead", 7, 7);
			}
			if(player.isHost = 0 && player.team == "axis" && player.isReallyAlive = 0)
			{
				newdeadenemyicon = newHudElem();
				newdeadenemyicon.x = iconOrigin[0];
				newdeadenemyicon.y = iconOrigin[1];
				newdeadenemyicon.z = iconOrigin[2];
				newdeadenemyicon setShader("cardicon_knife", 7, 7);
				wait 3;
				newdeadenemyicon setShader("none", 7, 7);
			}
				
			self iPrintlnBold( "Enabling Hack : HACK_WALLHACK");
		}
	wait .05;
	}
}


---------- Post added at 07:55 PM ---------- Previous post was at 05:58 PM ----------

Come on, no one can tell whether or not this would work/if it has any syntax errors?
You can just try it yourself to find out whether it works or not.
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us