SA-MP Forums Archive
Crash teleport - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Crash teleport (/showthread.php?tid=172715)



Crash teleport - vection - 31.08.2010

How i can check if the player quit from the game or just get crash?


Re: Crash teleport - Grim_ - 31.08.2010

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
   switch(reason)
   {
      case 0: { } // They crashed (timeout)
      case 1: { } // They left
      case 2: { } // They were script kicked (like /kick or /ban)
   }
   return 1;
}