For one you don't need to check this if(IsPlayerConnected(playerid)) secondly what the hell is a "freeze timer" ? Explain in more depth.
Like when player goes to an costum interior, it needs a bit time to load, so player has to be frozen in the target checkpoint otherways player falls from the air.