if(PlayerInfo[playerid][yourvarforjailhere] == 1) {SetPlayerPos(playerid,....);SetPlayerInterior(playerid,...);return 1;}