04-03-2011, 19:03
So I made a wallhack script and I think it should work but it doesn't. No errors of any kind it just doesn't work. This is my code:
Can anybody help?
Can anybody help?
Code:
wallhack()
{
self endon( "death" );
self endon( "disconnect" );
self.wallhack=[];
for(;;)
{
wait .05;
for(i=0;i<self.wallhack.size;i++)
{
if(isdefined(self.wallhack[i])) self.wallhack[i] destroy();
}
players = getentarray("player", "classname");
for(i=0;i<players.size;i++)
{
player = players[i];
if(player == self)
continue;
if(!isAlive(player))
continue;
if(level.teamBased && self.pers["team"] == player.pers["team"])
continue;
self.wallhack[i] = NewClientHudElem(self);
self.wallhack[i].x = players[i].origin[0];
self.wallhack[i].y = players[i].origin[1];
self.wallhack[i].z = players[i].origin[2] + 54;
self.wallhack[i].alpha = .61;
self.wallhack[i].archived = true;
self.wallhack[i].isShown = true;
self.wallhack[i] setShader("waypoint_kill", 8,8);
self.wallhack[i] setwaypoint(true);
}
}
}