Server Freeze/Endless Loop
#2

U can do it like this:

pawn Код:
if(!fexist("settings.ini")) // settings.ini should be inside scriptfiles folder. This code will run if it not exists there.
{
    printf("[SERVER] Settings.ini is missing from the scriptfiles folder! Server will be locked now.");
    SendRconCommand("password settings"); // Now the password to connect will be required.
}
Reply


Messages In This Thread
Server Freeze/Endless Loop - by Deduction - 29.12.2012, 00:17
Re: Server Freeze/Endless Loop - by Ballu Miaa - 29.12.2012, 03:41

Forum Jump:


Users browsing this thread: 1 Guest(s)