Alex
April 10, 2011, 12:17pm
1
Took a 5 minute break…and thought what I would find handy…
Who doesn’t love…SPY TOOLS!!!
[CODE]
// NPC made by alex
if(playerenters)toweapons Spy Tool;
if(weaponfired){
this.on=(this.on +1)%2;
if(this.on==1){say2 #i (#3 ,0,64,32,32): Spy On!;}
if(this.on==0){say2 #i (#3 ,0,64,32,32): Spy Off!;}
timeout=0.05;
}
if(mousedown && this.on == 1){
if(strequals(#p (0),left)){
setfocus mousex,mousey;
}
if(strequals(#p (0),right)){
resetfocus;
}
}[/CODE]
Click where you want it to focus, right click to reset focus XD
ENJOY!
hosler
April 10, 2011, 12:20pm
2
this is kinda neat. you can do if (this.on) with an else after it to make it even neater. fun script. also i dont think you need braces if there is only 1 command in the conditional.
Spooon
April 10, 2011, 12:31pm
3
Downsider made a real nice spy tool on XoriaPW '08 back in the day.
Spy Tool
Alex put this on Exotic and it is awesome! You gotta love it!
Alex
April 10, 2011, 1:35pm
5
xP lolol. This Couldn’t resist making this XD
And yes, if there is only one command, you don’t need brackets…But I used them anyway, because they help me organize my script.
Yes, yes it is.
What would’ve been better is if Alex was actually back like I had thought. :\
I’d love it if alex came back, because then i’d laugh so hard each time he posted a new script.