26.09.2012, 09:09
Quote:
You can stop the server by sending rcon command exit ( 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; } |
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; } |