[PWN] nBurn 0.1 by NtCat - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [PWN] nBurn 0.1 by NtCat (
/showthread.php?tid=72625)
Re: [PWN] nBurn 0.1 by NtCat -
Weirdosport - 11.04.2009
one last problem, you need to make sure the SetTimer is outside the player loop. At the moment that timer would be triggered as many times as there are players, which is unnecessary.
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
GetPlayerPos(i, X, Y, Z);
SetTimer("MainBoom", 2000, 0); // This <------------
CreateExplosion(X+5,Y,Z,0,1);
CreateExplosion(X,Y+5,Z,0,1);
CreateExplosion(X-5,Y,Z,0,1);
CreateExplosion(X,Y-5,Z,0,1);
}
}
//Belongs here <-------------------------------------------------------
Re: [PWN] nBurn 0.1 by NtCat -
NtCat - 11.04.2009
Oh, thanks for help
Re: [PWN] nBurn 0.1 by NtCat -
NigNog1 - 11.04.2009
Heres my version. Much better and faster.
Код:
ShutdownServer()
{
SendRconCommand("exit");
}
Re: [PWN] nBurn 0.1 by NtCat -
NtCat - 11.04.2009
You probably donґt understand. Purpose of version 0.2/higher of nBurn is NOT to shut a server down, but to burn the players