Wallhack script
#1
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?

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); } } }
[Image: MaEIQ.png]
Reply

#2
tried this as well but it doesnt show anything

here is what i've got
Code:
CreatePerk(perk, shader, pos, name) { perkpickup = spawn( "script_origin", pos ); perkpickup thread PerkThink(perk, shader, pos, name); perkpickup.headIcon = newHudElem(); perkpickup.headIcon.x = perkpickup.origin[0]; perkpickup.headIcon.y = perkpickup.origin[1]; perkpickup.headIcon.z = perkpickup.origin[2] + 40; perkpickup.headIcon.alpha = 0.85; perkpickup.headIcon setShader( shader, 1.5 ); perkpickup.headIcon setWaypoint( true ); }

no idea why
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#3
maybe becuase of no wait x in for loop?
Reply

#4
There is a wait in the for(;; ) loop.
And you don't need a wait in a for(i=0;i<players.size;i++) loop.
[Image: MaEIQ.png]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Who can create this script First_Semyon 3 5,839 09-24-2013, 18:19
Last Post: First_Semyon
  [Release] Advanced timed messages with script support DePa95 0 5,093 08-07-2013, 19:35
Last Post: DePa95
  Help Run Infinity Script on Teknogods? Bandarigoda123 6 9,180 07-14-2013, 17:27
Last Post: surtek
  can't find script engine "VBScript" for script "C:\Windows\system32\slmgr.vbs" ddaavvee 6 27,287 06-18-2013, 03:46
Last Post: dylankrajewski
  Simple flyable helicopter script port, could use help! akillj 0 3,695 06-15-2013, 09:20
Last Post: akillj
  What script controls the "random" aspect to care packages? akillj 2 4,537 06-05-2013, 11:24
Last Post: akillj
  Help Server Script Compile Error when loading ExtremeBunkerMaker lolmoon 3 5,151 04-09-2013, 03:11
Last Post: lolmoon
  [News] BO2 uses havok script kokole 19 15,696 02-05-2013, 10:04
Last Post: Pozzuh
  Help how make game mode script gsc pap12322221112 3 5,401 12-11-2012, 05:27
Last Post: rotceh_dnih
  Help Maximum Parent Script Variables DidUknowiPwn 11 11,671 11-21-2012, 19:30
Last Post: DidUknowiPwn

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2026 Melroy van den Berg.