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;}