Question about OnPlayerDisconnect(reason) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Question about OnPlayerDisconnect(reason) (
/showthread.php?tid=425054)
Question about OnPlayerDisconnect(reason) -
shady001 - 24.03.2013
pawn Код:
switch(reason)
{
case 0: format(string,sizeof string,"%s left the server. (Timed out)",name);
case 1: format(string,sizeof string,"%s left the server. (Leaving)",name);
case 2: format(string,sizeof string,"%s left the server. (Kicked/Banned)",name);
}
Timed out means Crash ? when for example a player get crashed or he quits the game from Task Manager ?
Re: Question about OnPlayerDisconnect(reason) -
dusk - 24.03.2013
Yes it means a crash or a lost connection.