Safe Gamemode Restart
#1

What do i need to destroy if i would like to have a safe gamemode restart without any bugs ?

Thanks.
Reply
#2

Nothing, just gmx.
And to be on the safe side
pawn Код:
public OnGameModeInit()
{
  SendRconCommand("unloadfs myadminscript");
  SendRconCommand("loadfs myadminscript");
  //etc
}
Reply
#3

Quote:
Originally Posted by dice7
Nothing, just gmx.
And to be on the safe side
pawn Код:
public OnGameModeInit()
{
  SendRconCommand("unloadfs myadminscript");
  SendRconCommand("loadfs myadminscript");
  //etc
}
How about objects, 3dtext, timers ? Or is it automatic in 0.3 ? (in 0.2X i had to destroy all of it).
Reply
#4

GameModeExit?

The best would be to kill SA:MP server process and run it again (no way that anything doesn't get deleted).
Reply
#5

Quote:
Originally Posted by $ЂЯĢ
GameModeExit?

The best would be to kill SA:MP server process and run it again (no way that anything doesn't get deleted).
then people on your server have to reconnect.
Reply
#6

No they don't.

Crash the server by trying to write to a folder that doesn't exist, it will crash the server.
Reply
#7

years!
or simply do /rcon gmx
!!
loooooool!
Or use an admin script that allows you too
create a simple admin script that
pawn Код:
IfIsPlayerAdmin /restart SendRconCommand("gmx"); else SendClientMessage(playerid,red,"You need to be logged in as RCON");
Pawn is amazing with such little things huh!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)