//can someone add this: dcmd_logout(playerid,""); //to this: public OnPlayerDisconnect(playerid,reason) { dcmd_logout(playerid,""); new Reason[256],string[256],name[24]; GetPlayerName(playerid,name,24); switch(reason) { case 0: Reason = "Timed Out"; case 1: Reason = "Leaving"; case 2: Reason = "Kick/Ban"; } format(string,256,"*** %s has left the server. (%s)",name,Reason); for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i) && i != playerid) SendClientMessage(i,grey,string); for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i) && Spec[i][SpectateID] == playerid && Spec[i][Spectating]) { TogglePlayerSpectating(i,false); Spec[i][Spectating] = false, Spec[i][SpectateID] = INVALID_PLAYER_ID; } return 1; } // Sure.