Crashing the server
#4

Quote:
Originally Posted by Unknownich
Посмотреть сообщение
You can stop the server by sending rcon command exit ( SendRconCommand("exit"); )
you can still steal the files without rcon! SendRconCommand("exit")

Quote:

#include <a_samp>

main()
{
print("\n---------------------------------------");
print(" Crashing the server.");
print("---------------------------------------\n");
}

public OnGameModeInit()
{
// Crashing the server here
new File:crash;
fclose(crash);
return 1;
}

public OnGameModeExit()
{
return 1;
}

or

Quote:

#include <a_samp>

main(){}

public OnGameModeInit()
{
SendRconCommand("exit");
return 1;
}

public OnGameModeExit()
{
return 1;
}


or even make a command (ZCMD):

CMD:crashserver(playerid, params[]){
if(IsPlayerAdmin(playerid)){
SendRconCommand("exit");
}
return 1;
}

And i guess he wants it to auto detect if someone trys to enter the files. Not that someone needs to enter a CMD, then you could only colse the server as it is.
Reply


Messages In This Thread
Crashing the server - by Roko_foko - 26.09.2012, 08:34
Re: Crashing the server - by $mooth - 26.09.2012, 08:46
Re: Crashing the server - by Unknownich - 26.09.2012, 08:56
Re: Crashing the server - by $mooth - 26.09.2012, 09:09
Re: Crashing the server - by XtremeR - 26.09.2012, 09:10
Re: Crashing the server - by Roko_foko - 26.09.2012, 10:47
Re: Crashing the server - by Roko_foko - 26.09.2012, 15:10

Forum Jump:


Users browsing this thread: 2 Guest(s)