Nova

Name: Nova
Type: Weapon
Author: John Doe
Description: A nova explosion surrounds the player.

[code]if (playertouchsme) {
toweapons Nova;
if (!hasnova) {
set hasnova;
}
}
if (playerchats && (this.isweapon==1)) {if (playersays(drop nova)) {unset hasnova;destroy; }}
if (weaponfired) {this.isweapon=1;}

if (weaponfired && playermp>24) {
freezeplayer 2;
putbomb 3,playerx+3,playery+3;
putbomb 3,playerx-3,playery-3;
putbomb 3,playerx+3,playery-3;
putbomb 3,playerx-3,playery+3;
putexplosion 1,playerx+3,playery+3;
putexplosion 1,playerx-3,playery-3;
putexplosion 1,playerx+3,playery-3;
putexplosion 1,playerx-3,playery+3;
putbomb 3,playerx+4,playery+4;
putbomb 3,playerx-4,playery-4;
putbomb 3,playerx+4,playery-4;
putbomb 3,playerx-4,playery+4;
putexplosion 1,playerx+4,playery+4;
putexplosion 1,playerx-4,playery-4;
putexplosion 1,playerx+4,playery-4;
putexplosion 1,playerx-4,playery+4;
putbomb 3,playerx+5,playery+5;
putbomb 3,playerx-5,playery-5;
putbomb 3,playerx+5,playery-5;
putbomb 3,playerx-5,playery+5;
putexplosion 1,playerx+5,playery+5;
putexplosion 1,playerx-5,playery-5;
putexplosion 1,playerx+5,playery-5;
putexplosion 1,playerx-5,playery+5;
putbomb 3,playerx+5,playery+5;
putbomb 3,playerx-6,playery-6;
putbomb 3,playerx+6,playery-6;
putbomb 3,playerx-6,playery+6;
putexplosion 1,playerx+6,playery+6;
putexplosion 1,playerx-6,playery-6;
putexplosion 1,playerx+6,playery-6;
putexplosion 1,playerx-6,playery+6;
putbomb 3,playerx+7,playery+7;
putbomb 3,playerx-7,playery-7;
putbomb 3,playerx+7,playery-7;
putbomb 3,playerx-7,playery+7;
putexplosion 1,playerx+7,playery+7;
putexplosion 1,playerx-7,playery-7;
putexplosion 1,playerx+7,playery-7;
putexplosion 1,playerx-7,playery+7;
putbomb 3,playerx+8,playery+8;
putbomb 3,playerx-8,playery-8;
putbomb 3,playerx+8,playery-8;
putbomb 3,playerx-8,playery+8;
putexplosion 1,playerx+8,playery+8;
putexplosion 1,playerx-8,playery-8;
putexplosion 1,playerx+8,playery-8;
putexplosion 1,playerx-8,playery+8;
putbomb 3,playerx+9,playery+9;
putbomb 3,playerx-9,playery-9;
putbomb 3,playerx+9,playery-9;
putbomb 3,playerx-9,playery+9;
putexplosion 1,playerx+9,playery+9;
putexplosion 1,playerx-9,playery-9;
putexplosion 1,playerx+9,playery-9;
putexplosion 1,playerx-9,playery+9;
putbomb 3,playerx+10,playery+10;
putbomb 3,playerx-10,playery-10;
putbomb 3,playerx+10,playery-10;
putbomb 3,playerx-10,playery+10;
putexplosion 1,playerx+10,playery+10;
putexplosion 1,playerx-10,playery-10;
putexplosion 1,playerx+10,playery-10;
putexplosion 1,playerx-10,playery+10;
putbomb 3,playerx,playery+7;
putexplosion 1,playerx,playery+7;
putbomb 3,playerx,playery+8;
putexplosion 1,playerx,playery+8;
putbomb 3,playerx,playery+9;
putexplosion 1,playerx,playery+9;
putbomb 3,playerx,playery+10;
putexplosion 1,playerx,playery+10;
putbomb 3,playerx,playery+11;
putexplosion 1,playerx,playery+11;
putbomb 3,playerx,playery+12;
putexplosion 1,playerx,playery+12;
putbomb 3,playerx,playery-7;
putexplosion 1,playerx,playery-7;
putbomb 3,playerx,playery-8;
putexplosion 1,playerx,playery-8;
putbomb 3,playerx,playery-9;
putexplosion 1,playerx,playery-9;
putbomb 3,playerx,playery-10;
putexplosion 1,playerx,playery-10;
putbomb 3,playerx,playery-11;
putexplosion 1,playerx,playery-11;
putbomb 3,playerx,playery-12;
putexplosion 1,playerx,playery-12;
putbomb 3,playerx+7,playery;
putexplosion 1,playerx+7,playery;
putbomb 3,playerx+8,playery;
putexplosion 1,playerx+8,playery;
putbomb 3,playerx+9,playery;
putexplosion 1,playerx+9,playery;
putbomb 3,playerx+10,playery;
putexplosion 1,playerx+10,playery;
putbomb 3,playerx+11,playery;
putexplosion 1,playerx+11,playery;
putbomb 3,playerx+12,playery;
putexplosion 1,playerx+12,playery;
putbomb 3,playerx-7,playery;
putexplosion 1,playerx-7,playery;
putbomb 3,playerx-8,playery;
putexplosion 1,playerx-8,playery;
putbomb 3,playerx-9,playery;
putexplosion 1,playerx-9,playery;
putbomb 3,playerx-10,playery;
putexplosion 1,playerx-10,playery;
putbomb 3,playerx-11,playery;
putexplosion 1,playerx-11,playery;
putbomb 3,playerx-12,playery;
putexplosion 1,playerx-12,playery;
playermp=playermp-25;
}[/code]

Hello. I was looking through some posts, looking over examples and trying to spark ideas, then I came across this post. Name sounded kinda cool. Played around and re-worked just slightly to work with a while loop to compact the script a little bit. Tested and confirmed to have same effect. Again, nothing wrong with original script, tested, worked as-is, just thought it could use shortening up.

if (playertouchsme) {
toweapons Nova;
if (!hasnova) {
set hasnova;
}
}
if (playerchats && (this.isweapon==1)) {
if (playersays(drop nova)) {
unset hasnova;
destroy;
}
}
if (weaponfired) {
this.isweapon=1;
}
if (weaponfired&&playermp>24) {
freezeplayer 2;
a=3;
b=7;
while (a<12&&b<12){
putbomb 3,playerx+a,playery+a;
putbomb 3,playerx-a,playery-a;
putbomb 3,playerx+a,playery-a;
putbomb 3,playerx-a,playery+a;
putexplosion 1,playerx+a,playery+a;
putexplosion 1,playerx-a,playery-a;
putexplosion 1,playerx+a,playery-a;
putexplosion 1,playerx-a,playery+a;
putbomb 3,playerx,playery+b;
putexplosion 1,playerx,playery+b;
putbomb 3,playerx,playery-b;
putexplosion 1,playerx,playery-b;
putbomb 3,playerx+b,playery;
putexplosion 1,playerx+b,playery;
putbomb 3,playerx-b,playery;
putexplosion 1,playerx-b,playery;
a+=1;
b+=1;
}
playermp-=25;
}