29.01.2015, 21:43
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:
And this was in the serverlog.txt:
Edit: If you type "exit" in the server console to shut the server down, OnGameModeExit does get called, but OnPlayerDisconnect not:
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;
}
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. |
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) |