[PWN] nBurn 0.1 by NtCat
#1

Hello. Do you want to shut your server down? Or do you want to secure your gamemode, if you are going to give it to someone? Or you just want to burn you server, for fun? Then this is for you. For more informations read more.

I made this script just for fun, but it has some purpose. It will make an explosion on every place in San Andreas (between: X/Y: -2500 to 2500, Z: -100 to 100) in every X ms (1 by default). On 99% your server wonґt "survive" it and it will crash after some time (less than 1 minute, I believe). So you can use it as a timer for shuting your server down . So here is the script:

Somewhere on start of your GM:
Код:
#define FILTERSCRIPT

new Float:X;
new Float:Y;
new Float:Z;

forward Bum();
OnGameModeInit:
Код:
SetTimer("Bum",1,0);
Somewhere in your GM:
Код:
public Bum()
{
	for(X = -2500.0000; X < 2500.0000; X++)
	{
	  for(Y = -2500.0000; Y < 2500.0000; Y++)
		{
		  for(Z = -100.0000; Z < 100.0000; Z++)
			{
			  CreateExplosion(X,Y,Z,7,2);
			}
		}
	}
	return 1;
}
Thatґs all, itґs a small, simple thing, but itґs (just a bit, but it is) useful. So see it, try it, comment it. Your server will crash (if you think that this amount of explosions can burn it or something, just change the coordinates ) and your players wonґt see anything (only if your GM is mostly played somewhere to the west of San Fierro ). Goodbye and hope you like this (perhaps a bit stupid, but funny ) idea.
Reply
#2

Timer with 1 Millisecond?
Quote:

public OnGameModeInit()
{
for(new Float:X = -2500.0000; X < 2500.0000; X++)
{
for(new FloatY = -2500.0000; Y < 2500.0000; Y++)
{
for(new FloatZ = -100.0000; Z < 100.0000; Z++)
{
CreateExplosion(X,Y,Z,7,2);
}
}
}
return 1;
}

Would be nearly the same
Reply
#3

Yes, timer for 1 milisecond, for big lags before crash some more comments?
Reply
#4

Thanks! Not for the script, for the snippet - I've been trying to figure out why my explosions wont work... I was defining them wrong, I need to use the for(); command...
Reply
#5

Pleased to help you some other comments?
Reply
#6

I don't consider that crashing is a good way to shutdown a server. Many filterscripts that involve save features might "malfunction" when the server is crashed, so it's a pretty dodgy way of "shutting down the server". I don't think people need a script that causes them to crash, they can do this quite happily on their own!
Reply
#7

Quote:
Originally Posted by Maercell
Timer with 1 Millisecond?
Quote:

public OnGameModeInit()
{
for(new Float:X = -2500.0000; X < 2500.0000; X++)
{
for(new FloatY = -2500.0000; Y < 2500.0000; Y++)
{
for(new FloatZ = -100.0000; Z < 100.0000; Z++)
{
CreateExplosion(X,Y,Z,7,2);
}
}
}
return 1;
}

Would be nearly the same
Then OnGameModeInit wouldnt end and your GM wouldnt load, Thats why you shoulnt put any timers to functions that will never end e.g.
pawn Код:
public OnGameModeInit()
{
  SetTimer("Hai", 1000, 0);
  return 1;
}

public Hai()
{
  new i = 1;
  while(i = 1)
  {
    i = 1;
  }
  return 1;
}
The function would never end so your script wouldnt be loaded and the GM would be useless,
And also ever since 0.2X you cant close your server and re open it with players connected as it auto kicks them, So i always gmx before i close it
Reply
#8

Yes, thanks for your comments. Iґm going to make the new version of nBurn where youґll be able to select coordinates in-game and it will "clear" some area with explosions.
Reply
#9

Quote:
Originally Posted by ʎυe‾ʎ
Thanks! Not for the script, for the snippet - I've been trying to figure out why my explosions wont work... I was defining them wrong, I need to use the for(); command...
Sorry it's not a command it's a code
Good i will create something like this in my script thanks for the idea
Reply
#10

OK if I will have some time, Iґll make new version as I said
Reply
#11

Hi, I made version 0.2 which is a bit more useful:
- Server is NOT crashing anymore
- This is like this: You write /bum and script makes some explosions around every player

To version 0.21 (in about 30 minutes ) Iґm going to add some new features, like timer, more effective and nicer explosions etc.

Download:
http://pastebin.com/f64aa70f0

Sorry, but I donґt have screens (death came too fast to press F8 ), so I can just tell you: It kills every player on the server (or damages his car very much)
Reply
#12

This creates 100 explosions around every player.. if you had a fairly full server, let's say 100 people, that's 10,000 explosions.. That's likely to crash the server...

Also, Float:PlayerPos[MAX_PLAYERS][3] does not need to have MAX_PLAYERS in it, which is gonna waste a fair bit of memory...
Reply
#13

Yes, I will edit it to max. 5 explosions/player, itґs enough
Reply
#14

If you use the right explosion ID it's more than enough.. If you want to make sure the player dies you could also add a little SetPlayerHealth(playerid, 0.0);
Reply
#15

Yes, I donґt want everybody to die on 100%, but anybody can add it to the script, if he wants it
Reply
#16

Version 0.21, it makes 4 explosions around player and then 1 explosion on the player

Download:
http://pastebin.com/f3e8926db
Reply
#17

It's alot of timers going off at once, but it's an improvement of 10,000 explosions going off at once!
Reply
#18

Yes, I know, I think Iґll edit that, so first the first 4 explosions will be created and then one timer to 1 explosion for all players
Reply
#19

That'd be a definite improvement.
Reply
#20

So, here it is:
http://pastebin.com/f240447d5

This is how can I can change a stupid script to useful script.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)