Thread: Help me.
View Single Post
  #27  
Old 08-26-2001, 10:15 AM
Grease_Man2 Grease_Man2 is offline
Registered User
Join Date: Jul 2001
Location: Coral Springs, Florida
Posts: 291
Grease_Man2 is on a distinguished road
Send a message via ICQ to Grease_Man2 Send a message via AIM to Grease_Man2 Send a message via Yahoo to Grease_Man2
hey guy, here's a script for ya...it gradually takes MP and you can turn them on and off, base of NPC made by Nyght aka Xero and i edited it a bunch, (if u still need the NPC i recomend this one). hope ya like it


// NPC made by Legend Xero
if (playertouchsme) {
toweapons TEST *****!!;
}
if (weaponfired&&playermp=>.5) {
if (this.activated==0) {
this.activated = 1;
timeout = 0.05;
}
else {
this.activated = 0;
}
}
if (timeout==0 && this.activated==1) {
if (!onwall(playerx,playery) && !onwall(playerx,playery+0.5) && !onwall(playerx,playery+1) && !onwall(playerx,playery+1.5) && !onwall(playerx,playery+2) && !onwall(playerx,playery+2.5) && !onwall(playerx,playery+3)
&& !onwall(playerx+0.5,playery) && !onwall(playerx+0.5,playery+0.5) && !onwall(playerx+0.5,playery+1) && !onwall(playerx+0.5,playery+1.5) && !onwall(playerx+0.5,playery+2) && !onwall(playerx+0.5,playery+2.5) && !onwall(playerx+0.5,playery+3)
&& !onwall(playerx+1,playery) && !onwall(playerx+1,playery+0.5) && !onwall(playerx+1,playery+1) && !onwall(playerx+1,playery+1.5) && !onwall(playerx+1,playery+2) && !onwall(playerx+1,playery+2.5) && !onwall(playerx+1,playery+3)
&& !onwall(playerx+1.5,playery) && !onwall(playerx+1.5,playery+0.5) && !onwall(playerx+1.5,playery+1) && !onwall(playerx+1.5,playery+1.5)&& !onwall(playerx+1.5,playery+2) && !onwall(playerx+1.5,playery+2.5) && !onwall(playerx+1.5,playery+3)
&& !onwall(playerx+2,playery) && !onwall(playerx+2,playery+0.5) && !onwall(playerx+2,playery+1) && !onwall(playerx+2,playery+1.5) && !onwall(playerx+2,playery+2) && !onwall(playerx+2,playery+2.5) && !onwall(playerx+2,playery+3)
&& !onwall(playerx+2.5,playery) && !onwall(playerx+2.5,playery+0.5) && !onwall(playerx+2.5,playery+1) && !onwall(playerx+2.5,playery+1.5) && !onwall(playerx+2.5,playery+2) && !onwall(playerx+2.5,playery+2.5) && !onwall(playerx+2.5,playery+3))
{
playermp-=.5;
if (keydown(0)) {
playery -= 1;
}
if (keydown(1)) {
playerx -= 1;
}
if (keydown(2)) {
playery += 1;
}
if (keydown(3)) {
playerx += 1;
}
if (playermp=0) {this.activated = 0;}
if (playerx > 61) {
playerx = 61;
}
if (playery > 61) {
playery = 61;
}
if (playerx < 0) {
playerx = 0;
}
if (playery < 0) {
playery = 0;
}
}
timeout = 0.05;
}
__________________
"When he holds you close, when he pulls you near, When he says the words you've been needing to hear, I'll wish I was him 'cause those words are mine, To say to you till the end of time." -Bon Jovi, 'always'
if you think i'm *** for listenin to it then f*ck you, and if you understand the lyrics, then i'm sorry that you gotta go through that pain too :'0(
Reply With Quote