[PWN] nBurn 0.1 by NtCat
#21

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 <-------------------------------------------------------
Reply
#22

Oh, thanks for help
Reply
#23

Heres my version. Much better and faster.

Код:
ShutdownServer()
{
  SendRconCommand("exit");
}
Reply
#24

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)