31.08.2010, 07:27
How i can check if the player quit from the game or just get crash?
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;
}