GMX, Stop server
#10

I don't know about linux, i'm using Windows and sa:mP 0.3.7

And yeah, i'm sure. Just tested it with this plain script, no filterscrips or plugins were loaded:
pawn Код:
#include <a_samp>

main(){}
public OnGameModeInit(){
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    print("OnGameModeInit Called");
    return 1;
}
public OnGameModeExit(){
    print("OnGameModeExit Called");
    return 1;
}
public OnPlayerConnect(playerid){
    print("OnPlayerConnect Called");
    return 1;
}
public OnPlayerDisconnect(playerid, reason){
    print("OnPlayerDisconnect Called");
    return 1;
}
And this was in the serverlog.txt:
Quote:

[23:19:04] OnGameModeInit Called
[23:19:04] Number of vehicle models: 0
[23:19:35] Incoming connection: 127.0.0.1:63187 id: 0
[23:19:35] [join] Schneider has joined the server (0:127.0.0.1)
[23:19:35] OnPlayerConnect Called
Console input: gmx
[23:19:49] OnPlayerDisconnect Called
[23:19:49] OnGameModeExit Called
[23:20:01] OnGameModeInit Called
[23:20:01] Number of vehicle models: 0
[23:20:01] OnPlayerConnect Called

//Here I shut down the server by pressing the X-button.

Edit: If you type "exit" in the server console to shut the server down, OnGameModeExit does get called, but OnPlayerDisconnect not:

Quote:

[23:26:17] OnGameModeInit Called
[23:26:17] Number of vehicle models: 0
[23:26:45] Incoming connection: 127.0.0.1:65122 id: 0
[23:26:45] [join] Schneider has joined the server (0:127.0.0.1)
[23:26:45] OnPlayerConnect Called
Console input: exit
[23:26:56] --- Server Shutting Down.
[23:26:56] OnGameModeExit Called
[23:26:56] [part] Schneider has left the server (0:0)

Reply


Messages In This Thread
GMX, Stop server - by Sime30 - 29.01.2015, 18:01
Re: GMX, Stop server - by CalvinC - 29.01.2015, 18:30
Re: GMX, Stop server - by Sime30 - 29.01.2015, 18:33
Re: GMX, Stop server - by Jefff - 29.01.2015, 20:10
Re: GMX, Stop server - by Sime30 - 29.01.2015, 20:14
Re: GMX, Stop server - by Jefff - 29.01.2015, 20:27
Re: GMX, Stop server - by Sime30 - 29.01.2015, 20:35
Re: GMX, Stop server - by Schneider - 29.01.2015, 20:46
Re: GMX, Stop server - by Sime30 - 29.01.2015, 20:50
Re: GMX, Stop server - by Schneider - 29.01.2015, 21:43

Forum Jump:


Users browsing this thread: 2 Guest(s)